Replies: 1 comment
-
Greetings @jon9595 from starlette.middleware import Middleware
api = StacApi(...)
api.add_middleware(Middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"]
)
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm new to using stac-fastapi, and I am implementing it using the stac-fastapi-sqlalchemy backend. I see in the
app.py
file ofstac-fastapi
that the CORSMiddleware is used in a lambda, but I am a bit lost on how to configure it for specific URLs. My front end is having CORS issues when connecting to it currently.Beta Was this translation helpful? Give feedback.
All reactions