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
Description: handleCors() returns an empty string ("") when handling preflight requests. However, the official example suggests using a truthy check (if (corsRes)), which fails since "" is falsy. This makes the example incorrect and the API unintuitive.
Expected:
Return a truthy sentinel (e.g. true or "handled") to indicate preflight handled, matching the example pattern.