Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevMiddleware ¶
func DevMiddleware() gin.HandlerFunc
DevMiddleware sets up a permisive CORS Middleware to allow frontend apis served in different port to access the web apis.
func GetCSRFToken ¶
GetCSRFToken returns a payload of the csrf_token
func Middleware ¶
func Middleware() gin.HandlerFunc
Middleware sets up a restrictive CORS Middleware and some extra headers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.