Git Product home page Git Product logo

Comments (7)

rs avatar rs commented on July 20, 2024

Would the result be free of new dep and still compat with net/http?

from cors.

hexadecy avatar hexadecy commented on July 20, 2024

Still compat but only with a complete duplicate of the 2 functions, like handlePreflightEcho().
I just learned that echo will soon have a cors middleware built-in.
So I will complete it to have an alternative in case.

from cors.

jadbox avatar jadbox commented on July 20, 2024

It would be great to support Cors with plain fasthttp (without Echo).

from cors.

gaby avatar gaby commented on July 20, 2024

@hexadecy You closed this but didn't share how it was completed?

@rs Can this be re-open? It would be awesome to have native fasthttp support

from cors.

gaby avatar gaby commented on July 20, 2024

No worries, adding fasthttp will require adding a dependency in go.mod

from cors.

hexadecy avatar hexadecy commented on July 20, 2024

@gaby sorry I didn't keep the code.
fasthttp dont have support for http2, and the fork fasthttp/http2#3 is barely alive.

from cors.

gaby avatar gaby commented on July 20, 2024

@gaby sorry I didn't keep the code. fasthttp dont have support for http2, and the fork fasthttp/http2#3 is barely alive.

I saw your post in the fasthttp repo, someone did a fork https://github.com/lab259/cors but it's 5 years behind :-)

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.