Start renaming
This commit is contained in:
@@ -7,7 +7,7 @@ The `csp()` middleware can be used to add
|
||||
to HTTP requests. These restrict which resources a document is allowed to load.
|
||||
|
||||
```ts main.ts
|
||||
import { csp } from "fresh";
|
||||
import { csp } from "sweet";
|
||||
|
||||
const app = new App()
|
||||
.use(csp({
|
||||
@@ -32,7 +32,7 @@ This ensures only inline `<script>` and `<style>` tags rendered by Fresh are
|
||||
allowed to execute.
|
||||
|
||||
```ts main.ts
|
||||
import { csp } from "fresh";
|
||||
import { csp } from "sweet";
|
||||
|
||||
const app = new App()
|
||||
.use(csp({ useNonce: true }))
|
||||
@@ -70,5 +70,5 @@ When `useNonce` is enabled:
|
||||
|
||||
## Options
|
||||
|
||||
See the [API docs](https://jsr.io/@fresh/core/doc/~/csp) for a list of all
|
||||
See the [API docs](https://jsr.io/@paulaboks/sweet/doc/~/csp) for a list of all
|
||||
supported options.
|
||||
|
||||
Reference in New Issue
Block a user