1. Access-Control-Allow-Origin for Calling API in Angular' Change your settings.py file and add code in Middleware Install Corsheader package in Django, and define in INSTALLED_APP MIDDLEWARE = CORS_ORIGIN_ALLOW_ALL = True