Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Flask app throws 403 forbiden after refreshing the page

$
0
0

My react app starts smoothly on first opening , then after any refresh i start getting 403 forbidden error , which makes my development super slow. any solution will be welcomed !

Backend running on Python Flask following are configs for CORS :

CORS(app, resources={r"/*": {"origins": ["http://localhost:3000","http://127.0.0.1:3000/"]}})socketio = SocketIO(app, cors_allowed_origins="*") 

Error

Running on Mac m2


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>