Skip to content

Commit

Permalink
fixed mixup in csp.md
Browse files Browse the repository at this point in the history
fixed the mixup. "frame-src" is right
  • Loading branch information
leofri3 authored Jun 27, 2024
1 parent 898138f commit b4f0ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sdk/advanced/csp.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Content Security Policy is a way to secure your website from cross-site scriptin
## Configuring your CSP for Friendly Captcha
If you are using a CSP for your website you will have to configure it to allow Friendly Captcha's iframes to be embedded.

In most cases you will only need to add the `iframe-src: *.frcapi.com` directive, for example:
In most cases you will only need to add the `frame-src: *.frcapi.com` directive, for example:
```headers
# old header
Content-Security-Policy: default-src 'self'
# new header
Content-Security-Policy: default-src 'self'; iframe-src *.frcapi.com
Content-Security-Policy: default-src 'self'; frame-src *.frcapi.com
```

0 comments on commit b4f0ec0

Please sign in to comment.