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

Preloader: Rename header to x-purpose to avoid it being stripped #1108

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

pfeiffer
Copy link
Contributor

@pfeiffer pfeiffer commented Dec 14, 2023

This PR fixes the issue mentioned in #1107 by renaming the header to x-purpose, as the Sec-Purpose header is stripped by fetch.

In this PR, the value is also changed to preview which is consistent with how eg. Safari and Chrome uses the x-purpose header for their "quick view" of eg. favorite pages.

* origin/main:
  Introduce `turbo:{before-,}morph-{element,attribute}` events
  Turbo 8.0.0-beta.4
  Introduce data-turbo-track="dynamic" (hotwired#1140)
  Ensure that the turbo-frame header is not sent when the turbo-frame has a target of _top (hotwired#1138)
  Turbo 8.0.0-beta.3
  Fix attribute name (hotwired#1134)
  Add InstantClick behavior (hotwired#1101)
  Revert hotwired#926. (hotwired#1126)
  Keep Trix dynamic styles in the head (hotwired#1133)
  Remove unused stylesheets when navigating (hotwired#1128)
  Upgrade idiomorph to 0.3.0 (hotwired#1122)
  Debounce page refreshes triggered via Turbo streams
  Update copyright year to 2024 (hotwired#1118)
  Turbo 8.0.0-beta.2
  Set aria-busy on the form element during a form submission (hotwired#1110)
  Dispatch `turbo:before-fetch-{request,response}` during preloading (hotwired#1034)
@afcapel afcapel merged commit b7187f1 into hotwired:main Jan 29, 2024
1 check passed
@afcapel
Copy link
Collaborator

afcapel commented Jan 29, 2024

Thanks @pfeiffer and @seanpdoyle!

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

Successfully merging this pull request may close these issues.

3 participants