Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cors = cors.Config{ AllowOrigins: strings.Join(origins[:], ","), AllowMethods: "GET,HEAD,OPTIONS,POST,PUT", AllowHeaders: "Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Control-Request-Headers, token, Access-Control-Allow-Origin, Authorization, Bearer, login", ExposeHeaders: "Content-Length", AllowCredentials: true, }
View Source
var IPport, _ = helper.GetAddress()
View Source
var Iteung = fiber.Config{ Prefork: true, CaseSensitive: true, StrictRouting: true, ServerHeader: "Makmur", AppName: "Makmur ai", }
View Source
var PrivateKey = os.Getenv("PRIVATEKEY")
View Source
var PublicKey = os.Getenv("PUBLICKEY")
Functions ¶
func SetAccessControlHeaders ¶
func SetAccessControlHeaders(w http.ResponseWriter, r *http.Request) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.