Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Implemented security headers based on webbkoll.5july.net recommendations, ensuring embeddable endpoints (selector, requirement preview) remain frameable. Added middleware for CSP, X-Frame-Options, and HSTS. Included integration tests.


PR created automatically by Jules for task 4338634012019970085 started by @berezovskyi

…sources

- Added `SecurityHeadersMiddleware` to set HSTS, CSP, X-Frame-Options, etc.
- Configured CSP to allow framing (frame-ancestors *) for `RequirementSelector` and requirement resources.
- Configured HSTS in `Program.cs` for Production environment.
- Added integration tests using `WebApplicationFactory` to verify header presence and conditional logic.
- Updated project to target .NET 8.0.
@google-labs-jules

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants