yuuvis® RAD Q&A

+1 vote
by (660 points)



We are using an angular-app hosted on an additional server and a Yuuvis custom service which needs to receive additional headers.

Therefore we need a way to configure CORS in the gateway configuration to allow additional headers.
see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers.
Is there already a proper setting for this? I haven't found anything in the manual.


Thanks and best regards,

1 Answer

0 votes
by (19.6k points)
selected by
Best answer

Hi Martin,

you can add the following section to your <service-manager>\config\gateway-prod.yml file to control if CORS is enabled or not and what domains, headers and methods are allowed. The shown values for headers and methods are the default values (you don't have to list them) and can be extended as you desire.

cors.enabled: true
cors.domains: qa-rad.yuuvis.com
  - X-Requested-With
  - Content-Type
  - Accept
  - Origin
  - Authorization
  - HEAD
  - GET
  - POST
  - PUT

Best regards

by (660 points)
Hi Nicolai,

seems to be exactly what we need...

many thx and rgds

Related questions

+2 votes
1 answer
asked Jun 3, 2020 by the_s (380 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer