Does anybody know what I have to do to get an elec...
# support-questions
c
Does anybody know what I have to do to get an electron app to send cookies in a fetch request? (Backend secured with Supertokens)
r
Hey! Nothing special as such. We have an example app with electron that you can check out
c
would be great
c
For some reason it doesnt set the sFrontToken after Logging in
Is there a reason why you use Axios instead of Fetch?
r
Fetch should work too
Can I see what appInfo you have given?
c
Okay I have to correct me... After logging in the token gets set but after hitting an endpoint it removes it ... Probably due to the refresh not working?
What do you mean exactly? Sorry that I dont know
r
Well. Can you enable frontend and backend debug logging and show me the output?
c
The first request after logging in
yes... just a moment
do you mean this?
r
No
There is a section on the docs called troubleshooting. See that
c
ah now i see
okay backend debug mode works... but on the frontend it says that enableDebugLogs is not available
r
Can you upgrade to the latest version of the frontend SDK?
c
okay works now... what part of the logs do you need... all of them?
r
Yup
So it seems the cookies are not being sent in the request
What is your request URL?
Oh right. I see the problem
You are querying cross origin
For it to work, you need to use https://localhost:5000 in your api domain (https not http)
Either that, or set the frontend and backend domains on the same domain
c
That worked, thank you!
3 Views