Skip to content

Unable to upload documents, 403 #6684

Closed Answered by mrUlrik
mrUlrik asked this question in Support
Discussion options

You must be logged in to vote

I am using the reverse proxy called BunkerWeb which was masking the response Django was providing. I've since turned that off and sure enough it's reporting the same issue as #6493.

{"detail":"CSRF Failed: CSRF token missing."}

They discovered Nixos was modifying cookies in transit. Sure enough, BunkerWeb is doing the same thing though even more aggressively and seemingly without an option to turn it off.

After exporting the Nginx config BunkerWeb creates, I discovered the directive set_cookie_flag is quite low in the configuration. In addition, if you attempt to set it to blank or simply specify an asterisk with nothing following, BunkerWeb defaults it to * HttpOnly SameSite=Lax.

Howeve…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrUlrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant