Code Monkey home page Code Monkey logo

Comments (6)

mschae avatar mschae commented on July 20, 2024 2

@slashmili Yes, very much so! Thanks in advance!

from cors_plug.

mschae avatar mschae commented on July 20, 2024

Great to know @YuLeven I wasn't aware it's not recommended to return null. Is there a suggestion what to return instead?

from cors_plug.

YuLeven avatar YuLeven commented on July 20, 2024

That's precisely where I got lost. Whereas W3C discourages null they didn't really provide a sound alternative. Perhaps we could rewire the implementation to return no header at all when it fails to match to the configured criteria.

from cors_plug.

slashmili avatar slashmili commented on July 20, 2024

Yes, what if there is no match, don't add any of these headers?

  • access-control-allow-origin
  • access-control-expose-headers
  • access-control-allow-credentials

@mschae are you open for a PR to handle this case?

from cors_plug.

CrowdHailer avatar CrowdHailer commented on July 20, 2024

This issue was an educational read. did not know all the details before. It looks like it is no longer an issue?

from cors_plug.

YuLeven avatar YuLeven commented on July 20, 2024

@CrowdHailer I think #57 solved it.

from cors_plug.

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.