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.
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.