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
tor browser has network.http.referer.hideOnionSource set to true in about:config, which sets the Origin header to 'null'. the jsdoc claims:
* @default `true`
*
* Assign the **Access-Control-Allow-Origin** header.
*
* Value can be one of the following:
* - `string` - String of origin which will be directly assign to `Access-Control-Allow-Origin`
*
* - `boolean` - If set to true, `Access-Control-Allow-Origin` will be set to `*` (accept all origin)
this is wrong, true in fact tries to mirror the request's Origin header before setting to * (if Origin is not set). however, on tb, Origin is in fact set, to the string null. this breaks cors
What version of Elysia is running?
No response
What platform is your computer?
No response
What steps can reproduce the bug?
tor browser has
network.http.referer.hideOnionSource
set totrue
in about:config, which sets the Origin header to'null'
. the jsdoc claims:this is wrong,
true
in fact tries to mirror the request'sOrigin
header before setting to * (ifOrigin
is not set). however, on tb, Origin is in fact set, to the stringnull
. this breaks corselysia-cors/src/index.ts
Line 245 in de56acd
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?No response
The text was updated successfully, but these errors were encountered: