From c83d46ef8622e2d10e25ee4b6efdbd3422758735 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Tue, 7 Feb 2017 11:17:25 -0300 Subject: [PATCH] Add information about cors annotation --- controllers/nginx/configuration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controllers/nginx/configuration.md b/controllers/nginx/configuration.md index 776644b6f..74d9a54fe 100644 --- a/controllers/nginx/configuration.md +++ b/controllers/nginx/configuration.md @@ -43,6 +43,7 @@ The following annotations are supported: |[ingress.kubernetes.io/auth-secret](#authentication)|string| |[ingress.kubernetes.io/auth-type](#authentication)|basic or digest| |[ingress.kubernetes.io/auth-url](#external-authentication)|string| +|[ingress.kubernetes.io/enable-cors](#enable-cors)|true or false| |[ingress.kubernetes.io/limit-connections](#rate-limiting)|number| |[ingress.kubernetes.io/limit-rps](#rate-limiting)|number| |[ingress.kubernetes.io/rewrite-target](#rewrite)|URI| @@ -120,6 +121,10 @@ ingress.kubernetes.io/auth-realm: "realm string" Please check the [auth](examples/auth/README.md) example. +### Enable CORS + +To enable Cross-Origin Resource Sharing (CORS) in an Ingress rule add the annotation `ingress.kubernetes.io/enable-cors: "true"`. This will add a section in the server location enabling this functionality. +For more information please check https://enable-cors.org/server_nginx.html ### External Authentication