[Fixed]-Error in receiving data from the Django REST API

1👍

You need to enable CORS on your Django app.

You can archieve that using django-cors-headers with Django.

After you install the package add http://localhost:8100 to whitelist.

CORS_ORIGIN_WHITELIST = (
    'localhost:8100',
)

Leave a comment