I am teaching an intermediate JS class and currently we are having all of our students setup local servers so they can post to API’s since you can’t post on things like CodePen or others that I know of. Is there a way to bypass this? We would prefer to not make our students setup a local server yet if possible and just post from something like CP. All ideas welcome!
What do you mean by this?
I’m just talking about a POST request to an API. You can do some GET requests without a cors error, but most POST requests throw an error that’s usually a CORS error.
This might work for you if you’re using codepen. Seems simple too with no real setup:
Thanks! Looks like crossorigin.me is down a lot, but I searched from this and got some other options. I may end up setting up my own server and having my students pass their api calls through that since I can setup allowed origins that way.