s-kostyuk / everpl

The Everthing Platfrom source code
https://everpl.readthedocs.io/
MIT License
0 stars 1 forks source link

Fix CORS preflight handling #27

Closed s-kostyuk closed 6 years ago

s-kostyuk commented 6 years ago

Add handling of OPTIONS requests for things and placements endpoints. Otherwise preflight will fail and it will be unable to read any data from server from host another than the platform host itself

s-kostyuk commented 6 years ago

Why to do it:

It's very likely that he most of users will use everpl with an absolute minimum of additional software. That means that there will not be any reverse-proxy HTTP servers or other middleware that will handle CORS logic.

So, that's why CORS must to be supported and handled by everpl itself