Web Push Notifications Server

FREE
By Dhyey Thumar | Updated hace un mes | Communication
Popularity

6.9 / 10

Latency

1,168ms

Service Level

100%

Health Check

N/A

Back to All Tutorials (2)

Why subscribe endpoint can't work by using RapidAPI's URL?


If you are thinking about “Why the subscribe endpoint is not working on RapidAPI’s URL?”. Then this tutorial will explain why I have chosen to opt-out of the RapidAPI URL of subscribe endpoint.


Reason 1

When you are using any RapidAPI endpoints in your apps (specifically applications running on the browser) you will expose your X-RapidAPI-Key when sending any request to the RapidAPI endpoint.

Check the below image when I send any request from my web app X-RapidAPI-Key is revealed out & anyone can use it & all of my paid RapidAPIs will be compromised related to that RapidAPI App.

example image



Reason 2

When a request is sent from a browser using RapidAPI endpoint it first reaches RapidAPI’s gateway/proxy & then gateway/proxy forwards this request to my API server. But the problem is RapidAPI gateway/proxy removes some header values which are added by the browser when a request is sent. And these request headers values are essential for the subscribe endpoint to validate the requests.

Hence I have opted out of RapidAPI specifically for the subscribe endpoint.