We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7936da4 commit d8ae349Copy full SHA for d8ae349
2 files changed
_redirects
@@ -0,0 +1,3 @@
1
+# /_redirects
2
+
3
+/api/* https://takebackday.infoloom.com/:splat
src/gateways/locations.js
@@ -1,6 +1,7 @@
import mockData from '../mockData';
-const jsonEndpoint = 'https://takebackday.infoloom.com/media/output.json';
+// Actual host url is set in redirects file to avoid CORS
4
+const jsonEndpoint = '/api/media/output.json';
5
6
export const fetchLocations = () => (
7
fetch(jsonEndpoint)
0 commit comments