feat: add support for CSP (#72)
This commit adds support for running with CSP. CSP can be enabled on a per page basis. If this is done, fresh will set a default CSP that is very restrictive. Users can modify the CSP with the `useCSP` hook. Fresh will add its own script resources to the CSP automatically.
This commit is contained in:
@@ -4,3 +4,4 @@ export * from "./src/runtime/suspense.ts";
|
||||
export * from "./src/runtime/utils.ts";
|
||||
export * from "./src/runtime/hooks.ts";
|
||||
export * from "./src/runtime/head.ts";
|
||||
export * from "./src/runtime/csp.ts";
|
||||
|
||||
Reference in New Issue
Block a user