Add CORS max age annotation (#1888)

Add cors-max-age annotation
This commit is contained in:
Márk Sági-Kazár 2018-01-09 12:19:42 +01:00 committed by Manuel Alejandro de Brito Fontes
parent 5973bec599
commit 313fdd2d1a
5 changed files with 22 additions and 1 deletions

View file

@ -25,6 +25,7 @@ The following annotations are supported:
|[nginx.ingress.kubernetes.io/cors-allow-methods](#enable-cors)|string|
|[nginx.ingress.kubernetes.io/cors-allow-headers](#enable-cors)|string|
|[nginx.ingress.kubernetes.io/cors-allow-credentials](#enable-cors)|true or false|
|[nginx.ingress.kubernetes.io/cors-max-age](#enable-cors)|number|
|[nginx.ingress.kubernetes.io/force-ssl-redirect](#server-side-https-enforcement-through-redirect)|true or false|
|[nginx.ingress.kubernetes.io/from-to-www-redirect](#redirect-from-to-www)|true or false|
|[nginx.ingress.kubernetes.io/limit-connections](#rate-limiting)|number|
@ -208,6 +209,10 @@ Example: `nginx.ingress.kubernetes.io/cors-allow-origin: "https://origin-site.co
Example: `nginx.ingress.kubernetes.io/cors-allow-credentials: "true"`
* `nginx.ingress.kubernetes.io/cors-max-age` controls how long preflight requests can be cached.
Example: `nginx.ingress.kubernetes.io/cors-max-age: 600`
For more information please check https://enable-cors.org/server_nginx.html