Click here to Skip to main content
15,560,393 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So, I've tried really hard finding an answer to this, but I can't.

Can someone please explain to me how to make a CORS proxy for an API? I am using api.scratch.mit.edu, and I want to use their format but for my own website, maybe scratchapi.com or whatever. So how can I copy each page on api.scratch.mit.edu onto scratchapi.com?

Basically, I want to make a CORS proxy so that scratchapi.com/users/Aquarial will be the same as api.scratch.mit.edu/users/Aquarial. But not just for that one page, for all of the pages on the Scratch API (api.scratch.mit.edu).

What I have tried:

I've tried CORS-Anywhere and things like that, but they can take a while to update and the data updates a lot.
Posted
Comments
Richard Deeming 12-Mar-21 4:46am    
Nobody here is going to help you steal somebody else's site.
NotTodayYo 12-Mar-21 7:43am    
Speak for yourself. ;)
Tilier 12-Mar-21 7:44am    
I don't think you know what a CORS proxy is . . . that's not my intention.
Richard Deeming 12-Mar-21 7:45am    
"So how can I copy each page on api.scratch.mit.edu onto scratchapi.com?"

How else are we supposed to interpret that requirement? You want every page from someone else's site to be shown as part of your site.
Tilier 12-Mar-21 7:50am    
Do you know what a CORS proxy is?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900