Giter Site home page Giter Site logo

Comments (4)

alexiglesias93 avatar alexiglesias93 commented on May 25, 2024

+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.

alexiglesias93 avatar alexiglesias93 commented on May 25, 2024

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.

durdenx avatar durdenx commented on May 25, 2024

I have the same issue with graphql yoga. OPTIONS method is blocked. Is there any solution?

from vercel.

huynhr avatar huynhr commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.