A Content Security Policy (CSP) is a standard that helps prevent or minimize the risk of certain types of security threats. It consists of a series of instructions from a website to a browser, which instruct the browser to place restrictions on the things that the code comprising the site is allowed to do.
Kong Manager provides the following settings to manage the CSP through kong.conf
:
Parameter | Description |
---|---|
admin_gui_csp_header
Default: off
|
Enable or disable the This configuration controls the presence of the CSP header when serving Kong Manager. The default CSP header value will be used unless customized. To modify the value of the served CSP header, refer to the Set this configuration to |
admin_gui_csp_header_value
|
The value of the This configuration controls the value of the CSP header when serving Kong Manager. If omitted or left empty, the default CSP header value will be used. This is an advanced configuration intended for cases where the default CSP header value does not meet your requirements. Use with caution. For more information on the CSP header, see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy |