Gin CORS and route-related behaviour #4434
kresnawan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Duude i recently really frustrated about handling CORS in Go with Gin, i've used lots of method from forums, started from just set the header manually, to use the gin cors library but none of them worked. BUT eventually I got an epiphany! I realize Gin's route behaviour for an index path /. It might be taking a good long time for me to fix because of my background in express n node.js
prev (not work) :
now :
Only replacing the / to just none was resolved my problem and i hope this could be a solution for someone who struggled,
Feel free to comment or asking :D sharing is caring!
Beta Was this translation helpful? Give feedback.
All reactions