Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File uploads don't work when using Brave browser #529

Closed
pierotofy opened this issue Sep 27, 2018 · 3 comments
Closed

File uploads don't work when using Brave browser #529

pierotofy opened this issue Sep 27, 2018 · 3 comments

Comments

@pierotofy
Copy link
Member

I'm not sure this can be classified as a bug since it looks like Brave's fault?

The reason file uploads don't work on Brave is because document.cookie always returns empty string, even though the document clearly has some cookies (which can be seen from Brave's dev tools). We need Django's CSRF token value to do file uploads!

@pierotofy
Copy link
Member Author

Doesn't work even on Mozilla's MDN page about document.cookie (try the example N.1 "Simple Usage"): https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie

@smathermather
Copy link
Contributor

😂 Fair enough.

@pierotofy
Copy link
Member Author

Seems like this has been fixed in Brave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants