-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
CORS No 'Access-Control-Allow-Origin' header #3214
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Hono are you using?
4.5.1
What runtime/platform is your app running on?
Vercel, node
What steps can reproduce the bug?
I have two applications running on the local machine:
When client application sends POST request to the server from browser, getting error regarding cors.
Of course, no errors using Postman windows app. Server responds with needed data.
Client side code:
Server side code, post method just not on the screenshot, but it is present . Showing cors configuration:
Errors from browser:
I tried all solutions suggested here:
#895
#2318
#1872
Nothing working out.
Spent several days and can' get it working.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
Package.json file:
{
"name": "my-app",
"type": "module",
"_moduleAliases": {
"$lib": "src/lib"
},
"scripts": {
"start": "vercel dev",
"deploy": "vercel"
},
"dependencies": {
"@azure/data-tables": "^13.2.2",
"@hono/node-server": "^1.12.0",
"hono": "^4.5.1",
"luxon": "^3.4.4"
},
"devDependencies": {
"vercel": "^32.4.1"
}
}
The text was updated successfully, but these errors were encountered: