I have a Vue app and I am making requests to a Django Rest Framework endpoint, well a few. It was working fine yesterday and I was able to submit and save content. Today I keep getting the same error
CSRF Failed: CSRF token missing.
But if I look in the dev tools I see this:
|csrftoken|“wzWBo6N66F1HTp2To67We5GppNWfbXdm”|
|sessionid|“1vq4vj73b1b6l80gt2ckba6zwxqj8wwu”|
So how is it missing if it is right there?
Second question:
What is the use of this setting if no matter what it still gives you a CSRF error?
CORS_ORIGIN_WHITELIST = (“localhost:8080”,“127.0.0.1:8080”)
CSRF_TRUSTED_ORIGINS = [“http://localhost:8080”, “http://*.127.0.0.1”, “http://127.0.0.1:8080”,“http://192.168.1.44:8080”,]