# NoCodeAPI + Fetch ❤️

**URL:** <https://community.glideapps.com/t/nocodeapi-fetch/33318>\
**Category:** Project Showcase\
**Created:** [October 20, 2021, 4:41am UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318 "2021-10-20T04:41:20Z")\
**Posts on this page:** 9\
**Page:** 4

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 20, 2022, 11:43am UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/61 "2022-06-20T11:43:36Z")

</div>

> [@Google maps distance matrix](https://community.glideapps.com/t/google-maps-distance-matrix/42198/15):
>
> I found the solution guys! @profxeni @gvalero @Robert_Petitto Just append [https://corsanywhere.herokuapp.com/](https://corsanywhere.herokuapp.com/) to your URL. For example: https://corsanywhere.herokuapp.com/https://maps.googleapis.com/maps/api/distancematrix/json?destinations=Fumone&origins=Anzio&units=metric&key=AIzaSyCLxnSvhGjjVPntRcZPhRDTt4SDZZ5m\_PQ Source:

Likely a CORS issue.

---

<div class="post-metadata">

**Author:** ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)\
**Post date:** [June 23, 2022, 12:54pm UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/63 "2022-06-23T12:54:38Z")

</div>

> [@ThinhDinh](#):
>
> Likely a CORS issue.

Found this nice test tool for CORS. Does it seem reliable?

> **[CORS Tester - Test a URL for valid CORS headers](https://cors-test.codehappy.dev/)**
>
> Use this little tool to test a URLs CORS headers.

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [June 23, 2022, 1:02pm UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/64 "2022-06-23T13:02:41Z")

</div>

Hola de nuevo!

If your problem is caused by a CORS issue, you could avoid it using a CORS proxy like this (what Thinh wrote above):

> [@Google maps distance matrix](https://community.glideapps.com/t/google-maps-distance-matrix/42198/15):
>
> I found the solution guys! @profxeni @gvalero @Robert_Petitto Just append [https://corsanywhere.herokuapp.com/](https://corsanywhere.herokuapp.com/) to your URL. For example: https://corsanywhere.herokuapp.com/https://maps.googleapis.com/maps/api/distancematrix/json?destinations=Fumone&origins=Anzio&units=metric&key=AIzaSyCLxnSvhGjjVPntRcZPhRDTt4SDZZ5m\_PQ Source:

Saludos!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 23, 2022, 1:18pm UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/65 "2022-06-23T13:18:38Z")

</div>

Yeah, when a link that can be fetched by accessing it in the browser but doesn’t return anything in Glide, I think CORS is the most likely cause.

---

<div class="post-metadata">

**Author:** ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)\
**Post date:** [June 23, 2022, 1:52pm UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/66 "2022-06-23T13:52:29Z")

</div>

> [@gvalero](#):
>
> using a CORS proxy

Aren’t these proxies super vulnerable?  
Seems that they can create a huge security issue.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 23, 2022, 2:07pm UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/67 "2022-06-23T14:07:18Z")

</div>

If that is a big concern for you, then the creator (Rob) did write about hosting your own version and having security limits for it.

> **[GitHub - Rob--W/cors-anywhere: CORS Anywhere is a NodeJS reverse proxy which...](https://github.com/Rob--W/cors-anywhere)**
>
> CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request. - GitHub - Rob--W/cors-anywhere: CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxi...

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/a/ba2b1f836be68fdb365f338e5505c123746a9e43.png)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 23, 2022, 2:16pm UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/68 "2022-06-23T14:16:17Z")

</div>

> <https://github.com/Rob--W/cors-anywhere/issues/301#issuecomment-962623118>
>
> The demo server of CORS Anywhere (cors-anywhere.herokuapp.com) is meant to be a …demo of this project. But abuse has become so common that the platform where the demo is hosted (Heroku) has asked me to shut down the server, despite efforts to counter the abuse (rate limits in #45 and #164, and blocking other forms of requests). Downtime becomes increasingly frequent (e.g. recently #300, #299, #295, #294, #287) due to abuse and its popularity.
> 
> To counter this, I will make the following changes:
> 
> 1. The rate limit will decrease from 200 (#164) per hour to 50 per hour.
> 2. By January 31st, 2021, cors-anywhere.herokuapp.com will stop serving as an open proxy.
> 3. From February 1st. 2021, cors-anywhere.herokuapp.com will only serve requests after the visitor has completed a challenge: The user (developer) must visit a page at cors-anywhere.herokuapp.com to temporarily unlock the demo for their browser. This allows developers to try out the functionality, to help with deciding on self-hosting or looking for alternatives.
> 
> \### What should current users of CORS Anywhere do in response to this announcement?
> If possible, try to avoid the need for a proxy at all. CORS Anywhere works by combining proxy functionality with \[CORS\](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). You may not need proxy functionality, if the web service that you are trying to access already supports CORS. This is the preferred solution because it is faster and more reliable. For development, you can also consider the use of browser extensions that automatically enables CORS for certain websites.
> 
> If your use of CORS Anywhere is infrequent, then the exception from step 3 above will allow you to continue as before. The only difference is that you need to explicitly opt in before access is temporarily allowed. If you'd like to not have these restrictions, then you should self-host CORS Anywhere.
> 
> For an example of self-hosting, see https://github.com/Rob--W/cors-anywhere#demo-server . There are also many questions and answers about hosting on the issue tracker here (https://github.com/Rob--W/cors-anywhere/issues). If you have questions, please search for existing issues first before opening a new issue.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/2/c2f362bd68ff404f83ff88cdd11060baadb8c514.png)

Here’s a straightforward how-to to deploy your own version on Heroku.

---

<div class="post-metadata">

**Author:** ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)\
**Post date:** [June 23, 2022, 2:39pm UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/69 "2022-06-23T14:39:54Z")

</div>

> [@ThinhDinh](#):
>
> straightforward how-to to deploy your own version on Heroku.

Thanks. this is great. However, this is still relaying information to a 3rd party, Heroku. Any ideas of a safer workaround for somewhat sensitive data?  
Not state secrets, but still data I’d prefer to secure.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 24, 2022, 12:15am UTC](https://community.glideapps.com/t/nocodeapi-fetch/33318/70 "2022-06-24T00:15:49Z")

</div>

> [@Test\_Test](#):
>
> Any ideas of a safer workaround for somewhat sensitive data?

No, I don’t have any other ideas.

[Previous page](https://community.glideapps.com/t/nocodeapi-fetch/33318.md?page=3)
