Comments (4)
+1
I'm experiencing the same issue when working locally (vercel dev
) with Vercel + Hono, it seems that Vercel is somehow not handling OPTIONS requests correctly. I've been trying to debug this but my local server never receives the request at all if it contains a Preflight.
When deploying, it works as expected.
from vercel.
I've been further testing and the issue starts happening on [email protected]
onwards. If I pin the version to any previous versions and use vercel dev
the issue doesn't happen anymore.
from vercel.
I have the same issue with graphql yoga. OPTIONS method is blocked. Is there any solution?
from vercel.
After digging around for hours I ran into this discussion-2794, and someone pointed out that if you remove your headers from the client then it will work. Lo and behold it works 🙏🏼 . I tested this both for serverless and express. No longer running into cors issues, you'll also have to set the headers in the vercel.json as per docs.
from vercel.
Related Issues (20)
- Faults in content in blog Introducing the Vercel Platforms Starter Kit
- Site
- Response to preflight request doesn't pass access control check HOT 3
- When deploying to vercel, the build fails once when it is told that the Workspace package is missing.
- [docs] Nuxt now supports on-demand ISR revalidation
- Whole page breaks when an image is clicked HOT 2
- Vercel dashboard bug: Client-side exception when domain contains wildcard HOT 2
- 🐞 Links on domain configuration card have [param names] rather than values
- I cannot acces any website hosted by vercel HOT 1
- Could not load the "sharp" module using the linux-x64 runtime HOT 8
- [BUG] Could not parse the patch version in go.mod file HOT 2
- Unhandled Promise Rejection when using node-fetch, Shopify remix app with shopify api v9 deployed to vercel HOT 14
- Getting the same list of projects again when i click load more
- Locked out of Pro account during signup - error: This user account is blocked HOT 2
- cannot access any website hosted by vercel HOT 1
- my account was block HOT 2
- Vercel functions python runtime does not respect `excludeFiles` property in vercel.json
- [email protected] broke preBuilds in monorepo HOT 11
- `Error [ERR_REQUIRE_ESM]: require() of ES Module` from vercel dependency HOT 2
- Error: EPERM: operation not permitted, symlink
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vercel.