CORS and raw.githubusercontent.com. #69281
Select Topic AreaQuestion BodyThe instructions say that if the file size is between 1mb and 100mb - I won't get anything in contents, so I should get a RAW file. But for some reason you blocked CORS. It feels like you are not aware that you have a lock.
|
Replies: 5 comments
|
I have the same problem while trying to fetch Changelog content using axios. Any solution ? |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
|
bump |
|
I solved this problem by 2 queries. |
I solved this problem by 2 queries.
req("GET", "https://api.github.com/repos/spacemeowx2/100mb/contents/100mb.bin");Then in the resulting array there is a key "git_url". By reqing this key (in this case the value is equal to https://api.github.com/repos/spacemeowx2/100mb/git/blobs/2ecda965e50fd1136e87be63df04d035022a2206) we get another array with the key "content", which will contain our data. It is important that the data is encoded in base64 format.