Review Response headers Content-Security-Policy
#4451
Labels
bug/minor
> 20% users will be affected by the issue, fix optionally
Content-Security-Policy
#4451
Problem
Currently response headers of authgear is about 2kb.
nginx proxy_buffer_size default is 4kb | 8kb
Proposed fix
Review large response headers such as
Content-Security-Policy
andSet-Cookie
inpkg/lib/web/csp.go
Note that
Permissions-Policy
will not be reviewed due to compliance issuesContext
Sample response
Note
Permissions-Policy
,Content-Security-Policy
andSet-Cookie
Measuring
Content-Security-Policy
size,we have 672 bytes
Some directions to explore
Drop support for CSP1 for
script-src
The text was updated successfully, but these errors were encountered: