Preflight requests to raw.githubusercontent.com #24659
-
Hi, I’m trying to pull raw files from GitHub via js in browser. Public files work great, but when I try to get private files, the request fails due to raw.githubusercontent.com *rejecting the OPTIONS preflight request* with 403. Curling on command line, it works fine with an access token, because curl doesn’t preflight.
If I manually preflight, the problem appears again:
I can get the file contents from the content API, but that’s clunky because stuff always seems to be base64, even with the raw media type (seems to just strip enclosing json metadata). Could you please consider looking into supporting OPTIONS on raw.githubusercontent.com? Or is there something I could do with the content api to get raw file contents? Thanks! Vesa |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
Thanks for reaching out. I’ll pass along the feedback to the development team. I can’t make any promises or give an ETA on when something might change, but your request will be in the hands of the appropriate people. Thanks again for letting us know. |
Beta Was this translation helpful? Give feedback.
-
I am getting the same problem but with simple public files. Was there a recent change? |
Beta Was this translation helpful? Give feedback.
-
I am also facing the same problem. Is there any work around for the same or is there any changes done for it? |
Beta Was this translation helpful? Give feedback.
-
what’s the story here? raw.githubusercontent.com still 403’s all CORS Preflight requests, even from content served by github pages. |
Beta Was this translation helpful? Give feedback.
-
Howdy! What is the status of this issue? |
Beta Was this translation helpful? Give feedback.
-
It seems the issue is still here |
Beta Was this translation helpful? Give feedback.
-
Issue still present in 2023. @lee-dohm Can you follow up on this? Manual pre-flights still get an automatic 403. |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out.
I’ll pass along the feedback to the development team. I can’t make any promises or give an ETA on when something might change, but your request will be in the hands of the appropriate people.
Thanks again for letting us know.