Skip to content

ctx.url.origin is always localhost:port / 0.0.0.0:port #76

Closed Answered by cyco130
sharmapukar217 asked this question in Q&A
Discussion options

You must be logged in to vote

Fixed the HatTip bug. Upgrade rakkasjs to 0.6.2-next.9 and @hattip/* to 0.0.20 and use the ORIGIN env var like this: ORIGIN=https://localhost:4173 rakkas preview --https with the correct origin. I'll investigate why vite-plugin-mkcert doesn't set the Host header and why relative redirects don't pick up the correct origin.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sharmapukar217
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sharmapukar217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants