HydraConsole icon indicating copy to clipboard operation
HydraConsole copied to clipboard

Enable preflighted CORS

Open tpluscode opened this issue 9 years ago • 7 comments

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

tpluscode avatar Aug 23 '16 14:08 tpluscode

Sure, for what though? :-)

lanthaler avatar Aug 23 '16 19:08 lanthaler

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: https://github.com/lanthaler/HydraConsole/issues/24#issuecomment-241851659

tpluscode avatar Aug 23 '16 19:08 tpluscode

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

lanthaler avatar Aug 23 '16 20:08 lanthaler

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

tpluscode avatar Aug 24 '16 10:08 tpluscode

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

tpluscode avatar Aug 24 '16 10:08 tpluscode

They can be found at:

  • https://github.com/lanthaler/EventApiDemo
  • https://github.com/lanthaler/sfHydraDemoApp

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

lanthaler avatar Aug 25 '16 21:08 lanthaler

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?

tpluscode avatar Aug 31 '16 11:08 tpluscode