You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
michalkvasnicak
changed the title
Frames behind Proxy built using Next.js don't work when multiple x-forwarded-proto headers are used.
TypeError: Invalid URL when calling Frames built using Next.js
Apr 17, 2024
This happens because of multiple x-forwarded-proto headers.
I've been trying to reproduce this locally for a while. I just tested sending mulitple x-forwarded-proto headers (without a proxy) and didn't have any issues, even if they were different. However, when I added multiple x-forwarded-host headers, I did start seeing an error: Error: Invalid Server Actions request.
But that still isn't the same issue I was seeing in a deployed instance, which is TypeError: Invalid URL
If you built frames using Next.js and have that application behind multiple proxies you can get an error
⨯ TypeError: Invalid URL
.This happens because of multiple
x-forwarded-proto
headers. In order to get around this issue user has to downgrade to[email protected]
.See vercel/next.js#58914
The text was updated successfully, but these errors were encountered: