graphql-engine/server/src-lib/Hasura/Server
Anon Ray 199a24d050 add support for multiple domains in cors config (close #1436) (#1536)
Support for multiple domains (as CSV) in the `--cors-domain` flag and `HASURA_GRAPHQL_CORS_DOMAIN` env var.

Following are all valid configurations (must include scheme and optional port):
```shell
HASURA_GRAPHQL_CORS_DOMAIN="https://*.foo.bar.com:8080"
HASURA_GRAPHQL_CORS_DOMAIN="https://*.foo.bar.com, http://*.localhost, https://example.com"
HASURA_GRAPHQL_CORS_DOMAIN="*"
HASURA_GRAPHQL_CORS_DOMAIN="http://example.com, http://*.localhost, http://localhost:3000, https://*.foo.bar.com, https://foo.bar.com"
```

**Note**: top-level domains are not considered as part of wildcard domains. You have to add them separately. E.g - `https://*.foo.com` doesn't include `https://foo.com`.

The default (if the flag or env var is not specified) is `*`. Which means CORS headers are sent for all domains.
2019-02-14 11:28:38 +05:30
..
Auth add support for multiple domains in cors config (close #1436) (#1536) 2019-02-14 11:28:38 +05:30
App.hs add support for multiple domains in cors config (close #1436) (#1536) 2019-02-14 11:28:38 +05:30
Auth.hs add config for stringified hasura claims in JWT (fix #1176) (#1538) 2019-02-05 17:34:16 +05:30
CheckUpdates.hs refactor to remove warnings especially with orphan instances (#1163) 2018-12-13 12:56:15 +05:30
Cors.hs add support for multiple domains in cors config (close #1436) (#1536) 2019-02-14 11:28:38 +05:30
Init.hs add support for multiple domains in cors config (close #1436) (#1536) 2019-02-14 11:28:38 +05:30
Logging.hs improve startup logging, close #1236 (#1258) 2019-01-02 16:54:17 +05:30
Middleware.hs add support for multiple domains in cors config (close #1436) (#1536) 2019-02-14 11:28:38 +05:30
Query.hs allow exposing postgres functions through GraphQL interface (close #333) (#1073) 2019-01-25 09:01:54 +05:30
Telemetry.hs add functions to server telemetry (#1500) 2019-01-28 22:16:44 +05:30
Utils.hs add support for multiple domains in cors config (close #1436) (#1536) 2019-02-14 11:28:38 +05:30
Version.hs add anonymous telemetry (#1401) 2019-01-28 19:25:28 +05:30