Community for yuuvis® RAD

+2 votes
by (160 points)

Hello,

we need to enable CORS for an angular-app hosted on another server. Where in yuuvis can this be done?

Best,
Stefan

1 Answer

0 votes
by (810 points)

Hi Stefan,

this can be configured in the gateway configuration (services\config\gateway-prod.yml). You can choose between a more general configuration or explicitly set allowed origins.

# Example 1
# activate cors filter
# allow all origins '*'
cors.enabled: true
 
# Example 2
# activate cors filter
# only allow requests from the https://yuuvis.io and  https://enaioci.net origins
cors.enabled: true
cors.domains:
  - https://yuuvis.io
  - https://enaioci.net
...