kit icon indicating copy to clipboard operation
kit copied to clipboard

Add csp to all responses

Open AlexRMU opened this issue 2 years ago • 0 comments

Describe the problem

It seems that now CSP headers are added only to html responses. However, probably some CSP should also be added to other responses.

https://stackoverflow.com/questions/68886438/why-should-we-include-csp-headers-in-the-http-response-for-an-api https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html#security-headers

Describe the proposed solution

Kit can add frame-ancestors "none" on its own if CSP is enabled. Or you can write about it in the documentation so that the user can add it himself.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

AlexRMU avatar May 24 '23 13:05 AlexRMU