Skip to content

Support runtime CORS configuration #340

Closed
@captaincoordinates

Description

@captaincoordinates

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions