Skip to content

CORS

Cross-Origin Resource Sharing (CORS) Configuration

When KrakenD endpoints are consumed from a browser, you should enable the Cross-Origin Resource Sharing (CORS) module, as browsers restrict cross-origin HTTP requests initiated from scripts.

Configuration

The configuration options of this component are as follows

allow_credentials
allow_headers
allow_methods
allow_origins
allow_private_network
debug 
expose_headers
max_age
options_passthrough
options_success_status
Step 1: Go to the Gateways open HTTP Security in that enable cross-origin resource sharing(CORS) you will see all the shown options in that section.

CORS