13π
β
It says No 'Access-Control-Allow-Origin' header is present on the requested resource.
which means your server application needs tunning to accept cross origin requests.
Cross origin requests are by default not working due to security reasons. You need to enable them.
For django there is a maintained package with good amount of settings just for this: https://github.com/ottoyiu/django-cors-headers/
π€T. Opletal
3π
After 2 hours of troubleshooting I found solution: TYPO in url.
Check twice, maybe it will fix your issue too.
π€Seyhak Ly
- Form is not valid⦠WHY?
- Include template tag not working in django
- What am I not doing right in this django file upload form?
- How to purge all tasks of a specific queue with celery in python?
- Displaying multiple Rows and Columns in django-crispy-forms
-1π
For this thing to work you need to do two thing:
-
instead of
https://
just givehttp://
in your CORS_ORIGIN_WHITELIST in settings.py -
add
CORS_ORIGIN_ALLOW = True
in the same file
π€Pronay Guha
- How to execute code on post_migrate signal in Django?
- Django subquery and annotations with OuterRef
- Force delete of any previous test database (autoclobber) when running Django unit tests, eg, in PyCharm
Source:stackexchange.com