forked from cerc-io/ipld-eth-server
enable CORS
This commit is contained in:
parent
6a43cd4287
commit
1b6a9ac8a2
@ -28,6 +28,7 @@ describe('bootServer', () => {
|
|||||||
options: {
|
options: {
|
||||||
pluginHook: jasmine.createSpy('pluginHook'),
|
pluginHook: jasmine.createSpy('pluginHook'),
|
||||||
watchPg: true,
|
watchPg: true,
|
||||||
|
enableCors: true,
|
||||||
simpleSubscriptions: true,
|
simpleSubscriptions: true,
|
||||||
graphiql: true,
|
graphiql: true,
|
||||||
webSocketMiddlewares: [] },
|
webSocketMiddlewares: [] },
|
||||||
|
@ -12,6 +12,7 @@ export interface PostgraphileOptions {
|
|||||||
pluginHook: PluginHookFn,
|
pluginHook: PluginHookFn,
|
||||||
simpleSubscriptions: boolean;
|
simpleSubscriptions: boolean;
|
||||||
watchPg: boolean;
|
watchPg: boolean;
|
||||||
|
enableCors: boolean;
|
||||||
graphiql: boolean;
|
graphiql: boolean;
|
||||||
// NOTE (jchristie@8thlight.com) Shape of the middlewares is not
|
// NOTE (jchristie@8thlight.com) Shape of the middlewares is not
|
||||||
// currently important to this application, but if a need arises,
|
// currently important to this application, but if a need arises,
|
||||||
|
@ -28,6 +28,7 @@ export function buildServerConfig(
|
|||||||
pluginHook: pluginHook,
|
pluginHook: pluginHook,
|
||||||
simpleSubscriptions: true,
|
simpleSubscriptions: true,
|
||||||
watchPg: true,
|
watchPg: true,
|
||||||
|
enableCors: true,
|
||||||
graphiql: true,
|
graphiql: true,
|
||||||
webSocketMiddlewares: [
|
webSocketMiddlewares: [
|
||||||
expressSessionHandler,
|
expressSessionHandler,
|
||||||
|
Loading…
Reference in New Issue
Block a user