Merge pull request #244 from aledbf/annotations-docs

Add information about cors annotation
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-02-13 17:59:47 -03:00 committed by GitHub
commit aa02b7e085

View file

@ -43,6 +43,7 @@ The following annotations are supported:
|[ingress.kubernetes.io/auth-secret](#authentication)|string| |[ingress.kubernetes.io/auth-secret](#authentication)|string|
|[ingress.kubernetes.io/auth-type](#authentication)|basic or digest| |[ingress.kubernetes.io/auth-type](#authentication)|basic or digest|
|[ingress.kubernetes.io/auth-url](#external-authentication)|string| |[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-connections](#rate-limiting)|number|
|[ingress.kubernetes.io/limit-rps](#rate-limiting)|number| |[ingress.kubernetes.io/limit-rps](#rate-limiting)|number|
|[ingress.kubernetes.io/rewrite-target](#rewrite)|URI| |[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. 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 ### External Authentication