Skip to content

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

Merged
alesanchezr merged 1 commit into
4GeeksAcademy:mainfrom
enaguero:change_flask_cors_to_routes
Nov 9, 2023
Merged

Change flask_cors to be applied after blue print is initalized#286
alesanchezr merged 1 commit into
4GeeksAcademy:mainfrom
enaguero:change_flask_cors_to_routes

Conversation

@enaguero

@enaguero enaguero commented Nov 9, 2023

Copy link
Copy Markdown
Contributor

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
MartinParafita pushed a commit to MartinParafita/Gestor-de-Citas-Medicas that referenced this pull request Mar 27, 2026
…to_routes

Change flask_cors to be applied after blue print is initalized
Sweetaxonomy added a commit to 4GeeksAcademy/final.project.kevin.michelle.gia that referenced this pull request Jun 15, 2026
…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