-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not assign string or regex value for origin
#16
Comments
Dup: #7 |
+1 I'm also seeing this and cannot seem to find an adequate resolution :/ |
same { origin: ({ headers }) => { |
Can you verify if this was fixed in the latest 1.0.4 patch? |
Sorry, this has been quite a while. I need to re-adjust the version and fix some old code in the new version of Elysia. But yes, the latest version of the Previously, I'd found the issue within my code, yet I wasn't sure if I was doing it the wrong way or if just the plugin was bugged. My issue at that time was the hook I'm injected with; if I remember correctly, it worked when I removed all However, after I tried the latest version of this plugin (specifically 1.0.4), I didn't need to remove all those hooks anymore, and it worked perfectly. |
Hi, how can I resolve this
CORS
error? When set as a string or regex, this will show an error that says the origin prop is an empty string.But when I use other approaches like boolean values or customize logic with functions, it will cause:
This is my current usage:
The text was updated successfully, but these errors were encountered: