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

Enable preflighted CORS #24

Open
tpluscode opened this issue Aug 23, 2016 · 7 comments
Open

Enable preflighted CORS #24

tpluscode opened this issue Aug 23, 2016 · 7 comments

Comments

@tpluscode
Copy link

Hi. Would it be possible to enable CORS requests with preflight? Currently the first OPTIONS request fails with 405 status code.

@lanthaler
Copy link
Owner

Sure, for what though? :-)

@tpluscode
Copy link
Author

I'm implementing a JS-only client and a Hydra console as playground

On Aug 23, 2016, 21:38, at 21:38, Markus Lanthaler [email protected] wrote:

Sure, for what though? :-)

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

@lanthaler
Copy link
Owner

Sorry, I still don’t understand what you are asking for. This is the HydraConsole repository. What needs to be changed in the HydraConsole?

@tpluscode
Copy link
Author

Oh, sorry, you're right. Of course, this was meant for the demo API repository

@tpluscode
Copy link
Author

Which I don't see by the way in your repo list...

@lanthaler
Copy link
Owner

They can be found at:

But it should probably be fixed directly in the HydraBundle (funnilly enough the last commit added some CORS headers)

@tpluscode
Copy link
Author

To fix it in HydraBundle, it would have to be configurable. After all, not everyone will want to publish their API publicly for everyone.

So, would you like me to raise this issue in any of those repos?

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