When trying set corsheaders in settings.py file When trying set corsheaders in settings.py file django django

When trying set corsheaders in settings.py file


Remove the slash (/) from the end of the line (after the number 4200), leaving it as:

CORS_ORIGIN_WHITELIST = ( 'http://localhost:4200', )

That should make it work.