used to allow aligator.dev to load stl files for GoSlice running as Webassembly from any external URL.
If the proxy runs at https://cors.aligator.dev
then you can call it with
https://cors.aligator.dev/?target=https%3A%2F%2Fcdn.thingiverse.com%2Fassets%2F7d%2Ffc%2F6e%2F33%2Ffe%2F3DBenchy.stl
and it will just proxy that request and setting the cors headers as needed.
See --help
for all possible options.
This proxy is really simple and just built for the aligator.dev webpage. It may not handle all cases. Also it is currently only allowed to set one possible origin. All other than the set one will be rejected.