Access Blitz endpoints from a different app #2708
Replies: 2 comments 1 reply
-
When using |
Beta Was this translation helpful? Give feedback.
-
Could you solve it? Any help is appreciate |
Beta Was this translation helpful? Give feedback.
-
Hi!
Right now I have one Blitz application and a Chrome extension built with React. I have regular and Google authentications in the blitz app and I'm able to hit the /api/auth/mutations/login endpoint and authenticate from the React app. Problem is that to access any other endpoint that is generated from a query or mutation that uses ctx.session.authorize(), I keep getting a 401. I'm hardcoding the anti-csrf header using a valid token (taken from the logged in user session). The only difference I can see from a Blitz api call and an api call madre from the react app, is the Cookie header. Is there any easy way to do this? Probably its something I'm doing wrong. Do you know about any example already doing this?
Beta Was this translation helpful? Give feedback.
All reactions