Enable preflighted CORS
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 [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
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:
- 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)
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?