Remove CSRF Token handling, implement CORS Headers.#2
Remove CSRF Token handling, implement CORS Headers.#2changeling wants to merge 1 commit intoSpookOrSpooky:masterfrom
Conversation
Replaced CSRF Handling with CORS Headers.
|
Quick question, following up from the issue where I couldn't find the appropriate cors site-packages, it seems that even corsheaders is absent from the site-packages. Uninstalling and re-installing leads to no addition or removal (even though it marks those files as added or removed). Any ideas? |
|
Usually when I run into that, it comes back to the correct virtual environment not being active. Check that out and see if it helps. Assuming you're definitely in the correct venv, pip install the package without the --user flag. Are you by any chance using VSCode? If so, make sure you've selected the venv as the interpreter in VS Code. |
|
So I've been trying without the user flag or VSCode. I'm using PyCharm for the install terminal, and it seems to be installing all the dependencies correctly but not the main package! I've tried downloading it manually, but I'm a little inexperienced in that department and I'm unaware of what I should be putting where from the downloaded .tar |
|
Have you tried just using it within Django, to see if it's in your path somewhere not apparent? |
|
Curious if you worked this out. |
Replaced CSRF Handling with CORS Headers.
You may want to play around with: