-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for echo v2 engine fasthttp #25
Comments
Would the result be free of new dep and still compat with net/http? |
Still compat but only with a complete duplicate of the 2 functions, like handlePreflightEcho(). |
It would be great to support Cors with plain fasthttp (without Echo). |
No worries, adding fasthttp will require adding a dependency in |
@gaby sorry I didn't keep the code. |
I saw your post in the fasthttp repo, someone did a fork https://github.com/lab259/cors but it's 5 years behind :-) |
There is an easy way to use echo v2 standard engine with cors.
But with the fasthttp engine, I had to create a fork and rewrite handlePreflight and handleActualRequest. It also add a dep to echo.
Do you want a PR or do I fork it?
The text was updated successfully, but these errors were encountered: