Files
goravel/config/cors.go
Bowens fcdf5517b3 Upgrade v1.5.0
1. Add FileStorage Module;
2022-11-22 22:42:58 +08:00

25 lines
745 B
Go

package config
import (
"github.com/goravel/framework/facades"
)
func init() {
config := facades.Config
config.Add("cors", map[string]interface{}{
// Cross-Origin Resource Sharing (CORS) Configuration
//
// Here you may configure your settings for cross-origin resource sharing
// or "CORS". This determines what cross-origin operations may execute
// in web browsers. You are free to adjust these settings as needed.
//
// To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
"allowed_methods": []string{"*"},
"allowed_origins": []string{"*"},
"allowed_headers": []string{"*"},
"exposed_headers": []string{"*"},
"max_age": 0,
"supports_credentials": false,
})
}