Builds csp options from the given input and default options.
The input options.
The default values to fall back to.
Valid CSP options.
Builds csp options from the given input and default options.