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

Add Content-Security-Policy and other headers to vercel.json #846

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

Conversation

fennifith
Copy link
Member

@fennifith fennifith commented Oct 21, 2023

This PR adds various headers (based loosely on express helmet defaults) to the Vercel config. We should make sure that none of these affect valid functionality before merging.

  • Tested against FFG content (check that alert() works within iframes)
  • Document headers in vercel.json.md

@vercel
Copy link

vercel bot commented Oct 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unicorn-utterances ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 4:03am

Copy link
Member

@crutchcorn crutchcorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR breaks medium-zoom with the following console error:

image

Copy link
Member

@crutchcorn crutchcorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

The FFG site no longer smooth scrolls when the user presses "learn more" in the header as a result of this error


Additionally, the Vercel preview URL comments bar no longer loads as a result of this error:

image

Copy link
Member

@crutchcorn crutchcorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@evelynhathaway evelynhathaway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot sign into Vercel preview comments

image

vercel.json Show resolved Hide resolved
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.

None yet

3 participants