File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
components/app/onboarding Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default {
4444 this .$emit (' next-slide' );
4545 },
4646 async locationDenied () {
47- let ipRequest = await fetch (' https://api.ipify.org?format=json' );
47+ let ipRequest = await fetch (' https://cors-anywhere.herokuapp.com/https:// api.ipify.org?format=json' );
4848 ipRequest = await ipRequest .json ();
4949 const { ip } = ipRequest;
5050 this .locationData = { ip };
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export default {
196196 }, 3000 );
197197 },
198198 async locationDenied () {
199- let ipRequest = await fetch (' https://api.ipify.org?format=json' );
199+ let ipRequest = await fetch (' https://cors-anywhere.herokuapp.com/https:// api.ipify.org?format=json' );
200200 ipRequest = await ipRequest .json ();
201201 const { ip } = ipRequest;
202202 const locationData = { ip };
You can’t perform that action at this time.
0 commit comments