hopefully fixed cors

This commit is contained in:
ACoolName 2024-05-25 00:55:46 +03:00
parent 3a77ff63a2
commit 73db604a2c

View File

@ -24,6 +24,8 @@ func main() {
AllowOrigins: []string{"*"}, AllowOrigins: []string{"*"},
AllowCredentials: true, AllowCredentials: true,
AllowMethods: []string{"*"}, AllowMethods: []string{"*"},
AllowAllOrigins: true,
AllowHeaders: []string{"*"},
})) }))
file, err := os.Open(os.Getenv(CONFIG_PATH_ENV_VAR)) file, err := os.Open(os.Getenv(CONFIG_PATH_ENV_VAR))
if err != nil { if err != nil {