Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

CSP header for API endpoints #315

Open
cosieLq opened this issue Aug 19, 2024 · 0 comments
Open

CSP header for API endpoints #315

cosieLq opened this issue Aug 19, 2024 · 0 comments

Comments

@cosieLq
Copy link

cosieLq commented Aug 19, 2024

Hi,

I'm implementing CSP header for API endpoints and have seen default-src 'none'; frame-ancestors 'none' recommended as the value for this header: https://infosec.mozilla.org/guidelines/web_security#content-security-policy

However, when I run several scanning tests on https://observatory.mozilla.org, it's said that base-uri and form-action are missing.
My question is: are these two directives necessary for API endpoints? Thank you!

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

No branches or pull requests

1 participant