Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware(allowedOrigins []string) gin.HandlerFunc
CORSMiddleware generates access-control-allow-origin/credentials headers so API services running on different domains can be accessed from a main (web) application without additional treatment (e.g. proxying)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.