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

fix: defer loading of head.html to allow inclusion of request cookie #2275

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

tripodsan
Copy link
Contributor

@tripodsan tripodsan commented Nov 15, 2023

This fix changes the way how the remote head.html is loaded (the remote head.html version is needed to properly calculating how the local head.html needs to be injected into the html page).
instead of fetching the head.html during startup, it is deferred until the proxy server actually needs it. this is after the browser sent eventual request cookie. this allows that the remote head.html can be fetched also for authenticated sites.

fixes #2274

Copy link

This PR will trigger a patch release when merged.

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (2f74d4d) 93.39% compared to head (2b87cbf) 93.43%.
Report is 1 commits behind head on main.

Files Patch % Lines
src/server/HelixProject.js 0.00% 1 Missing ⚠️
src/up.cmd.js 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2275      +/-   ##
==========================================
+ Coverage   93.39%   93.43%   +0.03%     
==========================================
  Files          26       26              
  Lines        3574     3594      +20     
  Branches        1        1              
==========================================
+ Hits         3338     3358      +20     
  Misses        236      236              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tripodsan tripodsan merged commit 1a8d2ac into main Nov 16, 2023
7 of 8 checks passed
@tripodsan tripodsan deleted the head-401 branch November 16, 2023 06:01
@tripodsan
Copy link
Contributor Author

🎉 This PR is included in version 16.0.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

head.html is not loaded from localhost when site authentication is configured.
2 participants