<@U04UQ68083H> how to define multiple domains for ...
# ory-copilot
g
@chilly-king-10285 how to define multiple domains for CORS settings in oathkeeper using env variables?
c
A message from kapa.ai
I'm sorry, but the provided knowledge sources do not contain specific information on how to define multiple domains for CORS settings in Oathkeeper using environment variables. However, they do provide information on how to configure CORS settings in the Oathkeeper configuration file. For example, in the
oathkeeper.yml
file, you can specify the allowed origins under the
serve.proxy.cors.allowed_origins
section like this:
Copy code
yaml serve:     proxy:       cors:         enabled: true         allowed_origins:           - <http://127.0.0.1:8080>         allowed_methods:           - POST           - GET           - PUT           - PATCH           - DELETE         allowed_headers:           - Authorization           - Content-Type         exposed_headers:           - Content-Type         allow_credentials: true         debug: true
(Source: [Configure Ory Oathkeeper and Ory Kratos Part 1](https://www.ory.sh/docs/oathkeeper/guides/proxy-websockets#configure-ory-oathkeeper-and-ory-kratos)) For more detailed information on how to configure CORS settings using environment variables, I would recommend checking the official Ory documentation.