Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Akka HTTP: document / point to community / show CORS #118
Patrick Ting has provided a snippet here: https://gist.github.com/pcting/2e65c36f868c5cee7d6a
Comment by ktoso
As a first step document, however if we deep it needed enough this one I think we may end up pulling in.
Any feedback about if that impl seems to be working fine or is not enough etc would be excellent, thanks!
Comment by lomigmegard
I have been working on a CORS implementation recently and wanted to share it here.
It follows the recommendation from the W3C (https://www.w3.org/TR/cors/), defining a new
Let me know if you would be interested in having this published to maven. Also do you think this would benefit the core project? I can work on a pull request if yes.
Compared to the other existing directives, this one is more complex and requires multiple settings. The CORS mechanism is not a core feature of http and as such should perhaps not be in akka-http. However, it is a very common use case when building APIs and a simplistic implementation can easily be full of bugs.