Skip to content

CORS blocked with deleted frontend and nextjs app instead #1204

Answered by tiangolo
JimVincentW asked this question in Questions
Discussion options

You must be logged in to vote

Hello there, you can start by reading the docs for CORS here: https://fastapi.tiangolo.com/tutorial/cors/

You can also read the docs about CORS in the Mozilla docs.

You might want to add some logs to your backend to show the currently used CORS origins before the setup. It could be that you haven't rebuilt and restated your Docker image after changing CORS or something similar. Printing the CORS origins in your code would help you debug if the problem is before or after that point.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants