[Django]-Django cors headers and server error

17👍

You’re missing a comma after 'corsheaders.middleware.CorsMiddleware' in your MIDDLEWARE_CLASSES.

Add one.


Your issue is caused by the fact that Python is concatenating the strings 'corsheaders.middleware.CorsMiddleware' and 'django.middleware.common.CommonMiddleware' and is therefore trying to import commonMiddleware from corsheaders.middleware.CorsMiddlewaredjango.middleware.common'.

Leave a comment