CDNs and API?
-
Hello,
Great work on the plugin, super useful and works great.
However, I can only get it fully working if I’m using no restrictions on the API. This is a security/financial risk since the API key is exposed to unauthorized use.
I’ve set up the required APIs with their associated restriction (referrer & IP). For the Distance Matrix, I’m getting the error:
Google Distance Matrix API error: REQUEST_DENIED - This IP, site or mobile application is not authorized to use this API key. Request received from IP address 35.188.192.47, with referer: https://maps.googleapis.com/maps/api/distancematrix/json?origins=-6.178784361374902,106.82303292695315&destinations=-6.181472315327319,106.8170462364319&key=THISISMYAPIKEY&avoid&language=en_US&units=metric&mode=drivingI’ve made sure I’m using the correct IP address (using Flywheel for managed hosting and they give this to you in your dashboard). The IP above is not my Flywheel-provided IP, could it be because I use a CDN? If so what, any idea on a solution?
Thanks in advance!
The topic ‘CDNs and API?’ is closed to new replies.