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

feat: added security headers #1396

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ilayda-cp
Copy link
Contributor

@ilayda-cp ilayda-cp commented Oct 11, 2024

Done

Added security headers.

  • Content-Security-Policy: Restrict resources (e.g., JavaScript, CSS, Images) and URLs
  • Referrer-Policy: Limit referrer data for security while preserving full referrer for same-origin requests
  • Cross-Origin-Embedder-Policy: allows embedding cross-origin resources
  • Cross-Origin-Opener-Policy: enable the page to open pop-ups while maintaining same-origin policy
  • Cross-Origin-Resource-Policy: allowing cross-origin requests to access the resource
  • X-Permitted-Cross-Domain-Policies: disallows cross-domain access to resources

Read more from here.

QA

  • Open : https://canonical-com-1396.demos.haus/
  • Verify no security header error is shown in the console.
  • Verify all the images, videos, iframes and other resources are shown correctly
  • Verify there is no behavior change (such as a link doesnt open)
  • Open header analyzer
  • Verify Referrer-Policy, Cross-Origin-Embedder-Policy, Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy and X-Permitted-Cross-Domain-Policies headers arent missing

Issue / Card

Fixes #14453, #14454, #14455, #14456, #14457, #14458

@webteam-app
Copy link

@ilayda-cp ilayda-cp self-assigned this Oct 11, 2024
@ilayda-cp ilayda-cp marked this pull request as ready for review October 11, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants