-
Notifications
You must be signed in to change notification settings - Fork 65
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
CORS Issue #10
Comments
its the trouble of cors you need make the cors white list in django may be try this INSTALLED_APPS = [ MIDDLEWARE = [ CORS_ORIGIN_ALLOW_ALL = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running a React frontend an when I try to post I get:
Access to XMLHttpRequest at 'http://localhost:8000/ask' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I am new (very) to python so any help would be appreciated!
The text was updated successfully, but these errors were encountered: