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
Sending a POST request to a server build with adapter-node fails with a cors error due to a wrong protocol in request.url.
The left side of the check (request.headers.get('origin')) has the correct url, while the right side (url.origin) has https as protocol instead of http, making the check fail (inequality) and resulting in a cors error.
The app works as intended in dev mode.
Reproduction
Create a new empty app with a form element and a handler on the server, change the adapter to adapter-node or use this repo for convinience.
Describe the bug
Sending a POST request to a server build with adapter-node fails with a cors error due to a wrong protocol in request.url.
The left side of the check (
request.headers.get('origin')
) has the correct url, while the right side (url.origin
) has https as protocol instead of http, making the check fail (inequality) and resulting in a cors error.The app works as intended in dev mode.
Reproduction
Logs
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: