Skip to content

Change flask_cors to be applied after blue print is initalized #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

enaguero
Copy link
Contributor

@enaguero enaguero commented Nov 9, 2023

According to the documentation for flask_cors, we apply CORS after applying blue_print, not in the app directly. This PR is trying to solve the CORS problem that sometimes appears.

Docs : https://flask-cors.readthedocs.io/en/latest/api.html#using-cors-with-blueprints

@alesanchezr alesanchezr merged commit 0263d6b into 4GeeksAcademy:main Nov 9, 2023
AngelDPL pushed a commit to 4GeeksAcademy/Spain-94-Flow that referenced this pull request Apr 5, 2025
…to_routes

Change flask_cors to be applied after blue print is initalized
kachaparth pushed a commit to kachaparth/react-flask-hello that referenced this pull request May 20, 2025
…to_routes

Change flask_cors to be applied after blue print is initalized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants