summaryrefslogtreecommitdiff
path: root/plugins/headers/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/headers/config.go')
-rw-r--r--plugins/headers/config.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/headers/config.go b/plugins/headers/config.go
deleted file mode 100644
index 688b4764..00000000
--- a/plugins/headers/config.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package headers
-
-// Config declares headers service configuration.
-type Config struct {
- Headers *struct {
- // CORS settings.
- CORS *CORSConfig
-
- // Request headers to add to every payload send to PHP.
- Request map[string]string
-
- // Response headers to add to every payload generated by PHP.
- Response map[string]string
- }
-}
-
-// CORSConfig headers configuration.
-type CORSConfig struct {
- // AllowedOrigin: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
- AllowedOrigin string `mapstructure:"allowed_origin"`
-
- // AllowedHeaders: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
- AllowedHeaders string `mapstructure:"allowed_headers"`
-
- // AllowedMethods: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
- AllowedMethods string `mapstructure:"allowed_methods"`
-
- // AllowCredentials https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials
- AllowCredentials *bool `mapstructure:"allow_credentials"`
-
- // ExposeHeaders: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
- ExposedHeaders string `mapstructure:"exposed_headers"`
-
- // MaxAge of CORS headers in seconds/
- MaxAge int `mapstructure:"max_age"`
-}