Documentation ¶ Index ¶ func Setup(route gin.IRouter, origins []string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Setup ¶ func Setup(route gin.IRouter, origins []string) Setup configures CORS middleware for the given router with specified allowed origins. It sets up permissive CORS settings allowing common HTTP methods and headers with credentials support and a 12-hour max age for preflight requests. Types ¶ This section is empty. Source Files ¶ View all Source files cors.go Click to show internal directories. Click to hide internal directories.