diff --git a/README.md b/README.md index 78b6254e..527ee27c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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