cors

package
v0.0.0-...-c4d1a2a Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowCors

func AllowCors(h http.Handler) http.Handler

AllowCors takes a HTTP handler and adds Access-Control-Allow-Origin headers to responses.

Note: HTTP OPTIONS requests (which need to be preflighted" for CORS) are not handled because this app does not use HTTP PUT/PATCH/etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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