You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the /api/v0/epub endpoint does not return a proper CORS header, so the browser blocks the request originating from SB or what have you - it's a common issue with APIs like that.
The fix is to make the endpoint return Access-Control-Allow-Origin: * header.
My personal workaround for now is to have my very own server proxying this request (and adding the header) lul
if you read this you can use my thing until this is fixed ig, works great
THIS DOESN'T WORK!
I messed up my nginx config and sent some background chinese script spam noise hitting me their way, and they rightfully blocked my servers IP (how does one do that? it's just some cloudflare default maybe) sadly.
The text was updated successfully, but these errors were encountered:
necauqua
changed the title
API CORS issues
The API endpoint should return Access-Control-Allow-Origin: * for it to work from bookmarklets/usercripts
Jun 13, 2024
So I made a better bookmarklet so that there's less annoying clicks to download the thing (esp. on mobile)
Here's its source, very simple:
However, the
/api/v0/epub
endpoint does not return a proper CORS header, so the browser blocks the request originating from SB or what have you - it's a common issue with APIs like that.The fix is to make the endpoint return
Access-Control-Allow-Origin: *
header.My personal workaround for now is to have my very own server proxying this request (and adding the header) lul
if you read this you can use my thing until this is fixed ig, works great
The text was updated successfully, but these errors were encountered: