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

False positive: Missing X-Frame-Options HTTP header #16334

Open
alensiljak opened this issue Apr 26, 2024 · 0 comments
Open

False positive: Missing X-Frame-Options HTTP header #16334

alensiljak opened this issue Apr 26, 2024 · 0 comments

Comments

@alensiljak
Copy link

Description of the false positive

In a c# project, we are using NWebsec.AspNetCore.Middleware's (docs) ApplicationBuilderExtensions to set the X-Frame-Options policy. The scanner, however, reports Missing X-Frame-Options HTTP header (cs/web/missing-x-frame-options) as it is only checking the Web.config, I assume.
Any suggestions on mitigation? Thanks!

Code samples or links to source code

//set x-Frame-Options policy="SameOrigin"
app.UseXfo(options => options.SameOrigin());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants