This Python code sample demonstrates how to implement authorization in a Flask API server using Auth0.
I had issues importing flask-cors.
Hey there @dan-auth0, tagging you for visbility!
1 Like
Hello @heathernstorey, Welcome to the Auth0 Community.
This Flask/Python API code sample has CORS enabled and accepts requests from the origin defined through the CLIENT_ORIGIN_URL
environment variable. We suggest setting this value to http://localhost:4040
since this is the origin of the Hello World client applications. However, if you’re pairing this API with a client application running on a different host or port, please update the CLIENT_ORIGIN_URL
to match your application’s origin.
Let us know if that works for you or if you need further assistance. Please provide us with more details to reproduce your issue.
Thanks,
Byron
1 Like