face-hh / lyntr

Micro-blogging social media - with an IQ test. https://lyntr.com
https://lyntr.com
Other
187 stars 57 forks source link

API Unaccessable #74

Closed ali-kingX closed 1 month ago

ali-kingX commented 1 month ago

Keeps returning 403 error. I've made sure to update my cookie(s).

GStudiosX2 commented 1 month ago

Keeps returning 403 error. I've made sure to update my cookie(s).

It's because of the cloudflare challenge and a lot of the API will be inaccessible because sveltekit has built in Csrf protection

ali-kingX commented 1 month ago

@GStudiosX2 So other parts of the API are fine, I can't access https://lyntr.com/api/feed?type=For%20you endpoint atm. I require assistance. This is an issue.

GStudiosX2 commented 1 month ago

@GStudiosX2 So other parts of the API are fine, I can't access https://lyntr.com/api/feed?type=For%20you endpoint atm. I require assistance. This is an issue.

You might be able to get everything to work with the Origin header but you can't access any of the API without the cf_clearance cookie

ali-kingX commented 1 month ago

@GStudiosX2 I have the cf_clearance cookie included already... Always... It just doesn't work...

GStudiosX2 commented 1 month ago

@GStudiosX2 I have the cf_clearance cookie included already... Always... It just doesn't work...

Yeah I don't know why but sometimes it doesn't work it might be that you need the exact headers or user agent that was used to get the clearance cookie

face-hh commented 1 month ago

The API is not meant to be used without the frontend. Official API may come out soon