Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

docs: update 'corsEnabled' and explanation #680

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ graphql:
enabled: true
# Sets the path where GraphQL servlet will be exposed. If not specified defaults to "/graphql"
mapping: /graphql
cors-enabled: true
corsEnabled: true
cors:
allowed-origins: http://some.domain.com
allowed-methods: GET, HEAD, POST
Expand All @@ -179,9 +179,11 @@ graphql:
async-mode-enabled: true
```

By default a global CORS filter is enabled for `/graphql/**` context. The `corsEnabled` can be set
By default a global CORS filter is enabled for `/graphql/**` context. The `corsEnabled` property can be set
to `false` to disable it.

Configuring `allowed-origins` or `allowed-methods` will enable CORS even if you have `corsEnabled` set to `false`.

# Enable Graph*i*QL

Graph*i*QL becomes accessible at the root `/graphiql` if the `graphql.graphiql.enabled` property
Expand Down