Merge pull request #115 from 8thlight/enable-CORS

enable CORS
This commit is contained in:
Takayuki Goto authored and GitHub committed 2018-11-13 14:47:40 -06:00
commit 9d26c174d4
3 files changed
+3

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ describe('bootServer', () => {
options: {
pluginHook: jasmine.createSpy('pluginHook'),
watchPg: true,
enableCors: true,
simpleSubscriptions: true,
graphiql: true,
webSocketMiddlewares: [] },
@@ -12,6 +12,7 @@ export interface PostgraphileOptions {
pluginHook: PluginHookFn,
simpleSubscriptions: boolean;
watchPg: boolean;
enableCors: boolean;
graphiql: boolean;
// NOTE (jchristie@8thlight.com) Shape of the middlewares is not
// currently important to this application, but if a need arises,
+1
View File
@@ -28,6 +28,7 @@ export function buildServerConfig(
pluginHook: pluginHook,
simpleSubscriptions: true,
watchPg: true,
enableCors: true,
graphiql: true,
webSocketMiddlewares: [
expressSessionHandler,