Coder Social home page Coder Social logo

Comments (6)

rs avatar rs commented on August 19, 2024

Re-reading the spec, I'm not sure we should stop the processing of the preflight request until there is a parsing error. I might revisit this.

from cors.

bithavoc avatar bithavoc commented on August 19, 2024

When the browser uses <img crossOrigin=Anonymous> there is no pre-flight and this line here halts the execution before isOriginAllowed realizes the desired * origins.

Should I open a separate issue or are we talking about the same thing?

from cors.

rs avatar rs commented on August 19, 2024

Yes, I think it's a different issue.

from cors.

jub0bs avatar jub0bs commented on August 19, 2024

@tj For what it's worth, I mentioned this issue in my latest my blog post.

from cors.

jub0bs avatar jub0bs commented on August 19, 2024

Related: whatwg/fetch#1588

from cors.

jub0bs avatar jub0bs commented on August 19, 2024

FWIW, I've implemented some debug mode in jub0bs/cors that changes the way the middleware composes responses to preflight requests, and which can be toggled on the fly. Perhaps something to consider for rs/cors.

from cors.

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.