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
{{ message }}
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
Prerequisites
Issue
A thing to be aware of when undici is used.
In a CORS situation, preflight requests from Safari lead to 500 error.
Indeed, Safari sends an OPTIONS request with a
content-length: 0header, which is not well handled by undici in that situation.It can be fixed by removing that content-length header, if present (Chrome doesn't send it), before calling the proxy function: