Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP Example #19

Open
typkrft opened this issue Dec 31, 2023 · 0 comments
Open

CSP Example #19

typkrft opened this issue Dec 31, 2023 · 0 comments

Comments

@typkrft
Copy link

typkrft commented Dec 31, 2023

https://github.com/packruler/rewrite-body/wiki/Examples

Documents shows an example

http:
  middlewares:
    theme-headers:
      headers:
        customRequestHeaders:
          accept-encoding: gzip;1.0,deflate;0.5,identity;0.1

    # Here is an example middleware to add headers for qBittorrent support
    
    qBittorrent-headers:
      headers:
        content-security-policy: default-src 'self'; style-src 'self' 'unsafe-inline' theme-park.dev raw.githubusercontent.com use.fontawesome.com; img-src 'self' theme-park.dev raw.githubusercontent.com data:; script-src 'self' 'unsafe-inline'; object-src 'none'; form-action 'self'; frame-ancestors 'self'; font-src use.fontawesome.com;

content-security-policy should be contentSecurityPolicy. At least in traefik 2.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant