Return to "origin.
This commit is contained in:
parent
8efc174e0e
commit
e569d80f0b
@ -8,7 +8,7 @@ import { InMemoryCache } from 'apollo-cache-inmemory';
|
||||
|
||||
import { createResolvers } from './resolvers';
|
||||
|
||||
const defaultServer = `${window.location.host}`;
|
||||
const defaultServer = `${window.location.origin}`;
|
||||
|
||||
export const graphqlApi = config => {
|
||||
const { api: { server = defaultServer, port = '', path = '/api' } } = config;
|
||||
|
Loading…
Reference in New Issue
Block a user