From ee8b4075c0f836d698d1ae505c87c17147de447a Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 21 Dec 2020 19:42:23 +0300 Subject: Move plugins to the roadrunner-plugins repository --- plugins/headers/config.go | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 plugins/headers/config.go (limited to 'plugins/headers/config.go') diff --git a/plugins/headers/config.go b/plugins/headers/config.go deleted file mode 100644 index 8d4e29c2..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 - - // AllowedHeaders: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers - AllowedHeaders string - - // AllowedMethods: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods - AllowedMethods string - - // AllowCredentials https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials - AllowCredentials *bool - - // ExposeHeaders: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers - ExposedHeaders string - - // MaxAge of CORS headers in seconds/ - MaxAge int -} -- cgit v1.2.3