diff --git a/src/wallets/ethTransactions.js b/src/wallets/ethTransactions.js index fe461e1f..72b2ce96 100644 --- a/src/wallets/ethTransactions.js +++ b/src/wallets/ethTransactions.js @@ -35,7 +35,16 @@ export const calculateGasPrice = async () => { : 'https://safe-relay.dev.gnosisdev.com/' */ - const response = await fetch('https://ethgasstation.info/json/ethgasAPI.json') + const header = new Headers({ + 'Access-Control-Allow-Origin': '*', + }) + + const sentData = { + mode: 'cors', + header, + } + + const response = await fetch('https://ethgasstation.info/json/ethgasAPI.json', sentData) if (!response.ok) { throw new Error('Error querying gast station') }