Skip to content

Commit

Permalink
use info
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed Feb 1, 2024
1 parent 3ca0f5d commit 4146e54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/en/docs/http/cross-origin-resource-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ CORP is an additional layer of protection beyond the default same-origin policy.

> As this policy is expressed via a response header, the actual request is not prevented. Rather, the browser prevents the result from being leaked by stripping the response body.
{{< callout context="note" title="Summary" icon="info-circle" >}}
You can think of CORP as similar to CORS but specifically tailored for `<script>` and `<img>` elements. It allows you to decide whether your resources can be loaded based on criteria such as `same-site`, `same-origin`, or `cross-origin`.
{{< /callout >}}

## Usage

- `Cross-Origin-Resource-Policy: same-site`: Only requests from the same Site can read the resource.
Expand Down

0 comments on commit 4146e54

Please sign in to comment.