CORS
CORS (Cross-Origin Resource Sharing) is a security feature implemented by web browsers that allows or restricts web applications running at one origin to make requests to resources from another origin.
By default any origin is allowed to access the resources of the server. However, you can restrict access to the same origin by setting the CORS_ALLOW_ANY_ORIGIN environment variable to false.
⚙️ Configuration
| Variable | Default | Values | Details |
|---|---|---|---|
| CORS_ALLOW_ANY_ORIGIN | true | true false | added in v3.13 |
How to set configuration options
Set the environment variables when starting the container.
Use
Use
docker run...- ...with
-e CORS_ALLOW_ANY_ORIGIN=true - ...with
--env-file .envand placeCORS_ALLOW_ANY_ORIGIN=truein the file