Skip to content

CSP Example #19

Description

@Ducky6944

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions