Skip to content

Commit

Permalink
Merge pull request #244 from aledbf/annotations-docs
Browse files Browse the repository at this point in the history
Add information about cors annotation
  • Loading branch information
aledbf authored Feb 13, 2017
2 parents 037120e + c83d46e commit aa02b7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/nginx/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit aa02b7e

Please sign in to comment.