@ttoss/graphql-api-server 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +5 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
package/dist/esm/index.js
CHANGED
|
@@ -20,7 +20,11 @@ var createServer = ({
|
|
|
20
20
|
schema: buildSchema(buildSchemaInput),
|
|
21
21
|
graphiql,
|
|
22
22
|
landingPage: false,
|
|
23
|
-
logging: false
|
|
23
|
+
logging: false,
|
|
24
|
+
/**
|
|
25
|
+
* Disable CORS, as it's handled by Koa middleware
|
|
26
|
+
*/
|
|
27
|
+
cors: false
|
|
24
28
|
});
|
|
25
29
|
const jwtVerifier = (() => {
|
|
26
30
|
if (authenticationType === "AMAZON_COGNITO_USER_POOLS") {
|
package/dist/index.js
CHANGED
|
@@ -61,7 +61,11 @@ var createServer = ({
|
|
|
61
61
|
schema: (0, import_graphql_api.buildSchema)(buildSchemaInput),
|
|
62
62
|
graphiql,
|
|
63
63
|
landingPage: false,
|
|
64
|
-
logging: false
|
|
64
|
+
logging: false,
|
|
65
|
+
/**
|
|
66
|
+
* Disable CORS, as it's handled by Koa middleware
|
|
67
|
+
*/
|
|
68
|
+
cors: false
|
|
65
69
|
});
|
|
66
70
|
const jwtVerifier = (() => {
|
|
67
71
|
if (authenticationType === "AMAZON_COGNITO_USER_POOLS") {
|
package/package.json
CHANGED