prasmussen / glot-run

API for running code inside docker containers
https://run.glot.io/
MIT License
147 stars 48 forks source link

Shouldn't OPTIONS requests be allowed to be accpeted from the api? #41

Open infoAkademia opened 4 years ago

infoAkademia commented 4 years ago

When making api calls to https://run.glot.io or any other url that the api is hosted Options HTTP request are not allowed.

Since anyone with a token can make POST requests to the api (i.e Postman, Insomnia ,curl or any other http client) then should web apps be allowed to be able to send OfPTIONS requests (since these are pre flight request) that are followed by a POST request?

Is this the intended behavior regarding the api?