Closed
Description
The documentation describes how to configure CORS for stac-fastapi and this currently requires code modifications. As a result anyone wanting to run the API with CORS needs to fork the repo to add a few lines of code. This is not ideal as CORS is a common requirement.
stac-fastapi should support runtime configuration of CORS with the following approach:
- CORS configuration file added to a container image or copied / mounted into a running container
- environment variable points to file location
- API recognizes and loads CORS configuration during init sequence
This approach has been implemented in a fork and a PR will be submitted shortly.
Metadata
Metadata
Assignees
Labels
No labels