lanthaler/HydraConsole

Enable preflighted CORS

tpluscode opened this issue · 7 comments

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

Sure, for what though? :-)

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

On Aug 23, 2016, 21:38, at 21:38, Markus Lanthaler notifications@github.com 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)

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

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

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

They can be found at:

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

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?