You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code block contains config.AllowAllOrigins = true, so we thought we don't have to change anything for allowing all origin, but we found something weird. We have to set AllowWildCard = true or AllowAllOrigin will not work, because AllowAllOrigin passes wildcard(*) on preflight request.
Maybe we should remove config.AllowAllOrigins = true from gin.Default()?
The text was updated successfully, but these errors were encountered:
If we want to allow all origins on CORS policy, we will find the code block on
gin.Default()
.The code block contains
config.AllowAllOrigins = true
, so we thought we don't have to change anything for allowing all origin, but we found something weird. We have to setAllowWildCard = true
or AllowAllOrigin will not work, because AllowAllOrigin passes wildcard(*) on preflight request.Maybe we should remove
config.AllowAllOrigins = true
fromgin.Default()
?The text was updated successfully, but these errors were encountered: