Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orion 1.0.0 does not handle CORS access control headers sufficiently #2108

Closed
captainrobbo opened this issue Apr 29, 2016 · 4 comments
Closed

Comments

@captainrobbo
Copy link

We're trying to directly talk to Orion from Javascript in browsers. This opens the door to many exciting uses, but it is inherently "cross domain" as far as the browser is concerned.

Unfortunately when a browser such as Chrome tries to do a PUT against Orion, it first does an OPTIONS request to find the allowed verbs (preflighting). Orion 1.0.0 responds with a list of verbs that does not include PUT. Therefore, when running over HTTP, one has to completely replace the entity every time using a POST.

In addition, when running Orion over HTTPS, connection is not possible. Orion would need to offer
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS

Currently we need to have a thin proxy in front of Orion to handle rewriting of headers.

It would be very convenient if Orion had options to allow the above.

@fgalan
Copy link
Member

fgalan commented May 3, 2016

CORS support for verbs different to GET is in our roadmap. Please, have a look to #501

@captainrobbo
Copy link
Author

Thanks very much!

In the meantime we have a simple WSGI server sitting in front, which does
the job.

  • Andy

On 3 May 2016 at 06:58, Fermín Galán Márquez [email protected]
wrote:

CORS support for verbs different to GET is in our roadmap. Please, have a
look to #501 #501


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#2108 (comment)

@fgalan
Copy link
Member

fgalan commented May 3, 2016

I'd suggest to close this issue as duplicated of #501

@captainrobbo
Copy link
Author

Duplicate of #501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants