Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCORSHeaders ¶
func ApplyCORSHeaders(w http.ResponseWriter, allowedMethods string)
ApplyCORSHeaders adds the standard CORS headers to a response For handlers that are not wrapped in middleware
func HandlePreflight ¶
func HandlePreflight(w http.ResponseWriter, r *http.Request) bool
HandlePreflight checks if the request is a preflight OPTIONS request and handles it Returns true if the request was handled (caller should return immediately)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.