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

@ -60,21 +60,12 @@ export const cachedEventsLength = {
}
}
export const corsConfig = (rpcUrl) => ({
headers: [
{
name: 'Access-Control-Allow-Origin',
value: rpcUrl
},
{
name: 'Access-Control-Allow-Methods',
value: 'POST, GET, OPTIONS'
}
],
export const httpConfig = {
withCredentials: false,
// buffer for tor connections
timeout: 30000
})
timeout: 30000,
keepAlive: true
}
export const PROVIDERS = {
walletConnect: {