Cross-Origin Request Blocked Django and React

Cross Origin Request Blocked

I have installed pip install django-cors-headers still not working

added into the settings.py file

INSTALLED_APPS = [
    ...
    'corsheaders',
    ...
]

MIDDLEWARE = [
    ...
    'corsheaders.middleware.CorsMiddleware',
    'django.middleware.common.CommonMiddleware',
    ...
]

enter image description here

enter image description here

Django Rest Framework

38 thoughts on “Cross-Origin Request Blocked Django and React”

  1. 955305 84375just couldnt leave your web site before suggesting that I actually loved the regular information a person supply for your visitors? Is gonna be once again ceaselessly to check up on new posts 72107

    Reply
  2. 938534 229374Greetings! Quick question thats completely off subject. Do you know how to make your website mobile friendly? My weblog looks weird when viewing from my iphone. Im trying to find a template or plugin that might be able to fix this issue. In the event you have any recommendations, please share. Appreciate it! 995508

    Reply

Leave a Comment