
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
github.com/krakendio/krakend-cors/v2
Advanced tools
A set of building blocks for instrumenting KrakenD gateways
Check the tests and the documentation for more details
You need to add an ExtraConfig section to the configuration to enable the CORS middleware. At least one option should be defined.
allow_origins list of strings (you can also use a wildcard, leaving it empty allows all origins too)allow_headers list of stringsallow_methods list of stringsexpose_headers list of stringsallow_credentials boolmax_age duration (Ex: "12h", "5m", "3600s", ...) "extra_config": {
"github_com/devopsfaith/krakend-cors": {
"allow_origins": [ "http://foobar.com" ],
"allow_methods": [ "POST", "GET"],
"max_age": "12h"
}
}
or leave the defaults (the defaults allows all origins):
"extra_config": {
"github_com/devopsfaith/krakend-cors": {
"allow_origins": []
}
}
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.