Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶ added in v0.17.0
CORS returns a middleware that handles Cross-Origin Resource Sharing. It sets the appropriate headers for preflight and actual requests. If allowedOrigins is empty, CORS headers are not added.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.