Replies: 1 comment 11 replies
-
I am still doing some checks. It appears that there is a call to |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, first I would like to thank the creator and contributors for this amazing project/product. I have been using this library for authN for my Django apps for some time now and it is solid.
I am currently trying to wrap my head around the headless API, especially the
browser
authentication. In the example application I notice that therequest
function does some bootstrapping and also adds the CSRF Token to the request header using the following line:options.headers["X-CSRFToken"] = getCSRFToken();
. But how does the token gets stored in the browser cookie in the first place?Pardon me if I may have missed it somewhere in the docs or the example application but I have been digging for the past hour and I cannot seem to find it. In my application, the
X-Csrftoken
header value for isnull
in the request so Django throws a 403 and complains about Origin checking failed.I took the liberty and looked at the demo react application for the project and behold, the header value is populated with an actual csftToken.
Any can point me in the right direction?
Beta Was this translation helpful? Give feedback.
All reactions