cors config

This commit is contained in:
gozzy 2022-11-23 11:42:59 +00:00
parent 21a19e6db7
commit ef4104a186
2 changed files with 6 additions and 15 deletions

View file

@ -39,7 +39,7 @@ const defaultOptions = {
const client = new ApolloClient({
uri: link,
credentials: 'same-origin',
credentials: 'omit',
cache: new InMemoryCache(),
defaultOptions
})
@ -47,7 +47,7 @@ const client = new ApolloClient({
const registryClient = new ApolloClient({
uri: 'https://api.thegraph.com/subgraphs/name/tornadocash/tornado-relayer-registry',
cache: new InMemoryCache(),
credentials: 'same-origin',
credentials: 'omit',
defaultOptions
})