gridaco / cors.sh

Sick of CORS Errors?
https://cors.sh
MIT License
196 stars 10 forks source link

Website page for Minecraft mod skeleton generator #111

Closed Crystal-Spider closed 7 months ago

Crystal-Spider commented 7 months ago

You are applying for validated OSS program

Repository URL to your project

https://github.com/Crystal-Nest/crystalnest.it

URL to your website

https://crystalnest.it/

Expected Quota of usage

Not many calls, especially in the first period because only a few people will be using it.
Later on it might get more used, but still it should be used by people once in a while as it only provides a skeleton project to work on.

Details

- Category: Minecraft mods
- License: GPL-3.0
- Date of release: 2024/01/30

Anything else?

The part of my website for which I'd be using a proxy is the mod skeleton generator.
The basic idea is simple: I have another public repository which works as the mod template, I retrieve the zip archive, process it based on the input data from the user, then make the browser download the update zip archive.

Please, note that currently it's very much WIP. The logic works, the UI is terrible, but I'll be soon working on it.

Unfortunately, GitHub prevents this because of CORS. I know it's not the best to use a proxy in production to avoid CORS, however it seems to be my only option as pointed out here by a GitHub staff engineer.

I also tried using https://corsproxy.io/, and it seemed to work at first. However, I found out that making the request returns an older version of the repository (more than 1 day old as the time of writing).

Crystal-Spider commented 7 months ago

I don't actually need this anymore, I managed with Cloudflare Workers.
Also maybe I couldn't have used this because of the private API key I'd need to send in public calls.