I have a fairly long Content-Security-Policy header value and I am having to place it in several location
blocks.
Is it possible to declare a variable in the configuration that has the value of my long CSP string and then use the variable in place of the string throughout my location
blocks?
Something like this:
location / {
...
set_header Content-Security-Policy $csp_string;
...
}
...
location /somethingelse {
...
set_header Content-Security-Policy $csp_string;
...
}