-
Notifications
You must be signed in to change notification settings - Fork 97
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
js error on chrome only! #158
Comments
i almost in my way to know the problem, it seems that t is because the McAfee® WebAdvisor extension in chrome or any extension! ... which blocks your rates .. |
now by clearing cookies browsing etc it works ! |
Hi @MidoCobra, I would say you wouldn't want to disable csrf protection as a workaround. This sounds like its an error in the chrome extension, maybe its stripping some cookies from the request before its sent. I wonder if storing the csrf token on the session will help https://docs.djangoproject.com/en/2.1/ref/csrf/#is-it-a-problem-that-django-s-csrf-protection-isn-t-linked-to-a-session-by-default |
I still get 403's :(
and from backend:
Switching I don't have any extensions on these browsers (FF/chrome) |
I think I got it - https://docs.djangoproject.com/en/dev/ref/settings/#csrf-cookie-httponly
Hence the 403's I get :/ |
Hi all,
star ratings working well with Edge, Firefox & other android browsers, but with chrome i got this error in my console:
star-ratings.js:259 POST https://##########.com/details/null 404 (Not Found)
(i dont know why null?! i m putting object after ratings and it is defined correctly in my views and urls and even readonly=true is working well for star ratings in the same template!)
star-ratings.js:265 POST https://########.com/ratings/28/1/ 403 (Forbidden)
post @ star-ratings.js:265
rate @ star-ratings.js:68
ratingSubmit @ star-ratings.js:60
VM5445:2 Uncaught SyntaxError: Unexpected token < in JSON at position 1
at JSON.parse ()
at XMLHttpRequest.req.onreadystatechange (star-ratings.js:249)
i think it is something about csrf !
but actually i m not good at all with javascript to be able to handle this !
The text was updated successfully, but these errors were encountered: