TypeScript API / @laikacms/server/oauth2 / buildCspWithLogo
Function: buildCspWithLogo()
ts
function buildCspWithLogo(basePolicy, additionalImgSrc): string;Build a Content-Security-Policy header value with optional custom img-src
Parameters
| Parameter | Type | Description |
|---|---|---|
basePolicy | string | The base CSP policy string |
additionalImgSrc | string[] | Additional img-src values to add |
Returns
string
The complete CSP header value