Skip to content

CORS not working properly for stac-fastapi with stac-browser #203

@ianhorn

Description

@ianhorn

Problem description

All the API urls work when I start the containers. I'm even able to access the http://:8081/api.html; however, the STAC-Browser still says I don't have CORS-enabled for 8081.

Expected Output

I added the following to the environment for the fastapi. I removed my ec2 dns

      - CORS_ALLOW_ORIGINS=*
      - CORS_ALLOW_METHODS=GET, POST, PUT, DELETE
      - CORS_ALLOW_HEADERS=Content-Type,Authorization
      - ALLOWED_ORIGINS=*
      - CORS_ORIGINS=*
      - CORS_ORIGINS=<http://ec2DNS>:8085,*
      - API_URL=http://<ec2dns>:8081

Environment Information

EC2 - AMI Amazon Linux 2023
Docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions