[Answered ]-Why I can't set X-CSRFToken in request to Django REST API?

1👍

@wOxxOm again your sugestion help me.

For chrome extensions you can’t make fetch requests from content-scripts, everything works fine when I changed the fetch process to the background-script.

So the solution is make requests from background scripts.

https://www.chromium.org/Home/chromium-security/extension-content-script-fetches

Leave a comment