cors

package
v0.0.0-...-31c1c1e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cors implements a validator for CORS origins

Index

Constants

This section is empty.

Variables

View Source
var DefaultSchemas = []string{
	"http://",
	"https://",
}

DefaultSchemas is a list of default allowed schemas for CORS origins

Functions

func Validate

func Validate(origins []string) error

Validate checks a list of origins if the comply with the allowed origins

Types

This section is empty.

Jump to

Keyboard shortcuts

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