cors

package
v0.0.2-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL