Here-maps Routing Api Fails With Invalid Credentials, But Other Here-api's Continue To Work With Exact Same Credentials
So, I've copy pasted the example code from https://developer.here.com/documentation/maps/topics/routing.html into a new project after setting up a new Freemium project, and it work
Solution 1:
Freemium users need to have the correct HTTP Referer header set in their request. Checking Here logs,we could see that you are using:
referer=https://www.cs.drexel.edu/~nim28/CI102/Projects/Project-1/trucking-gps.php
However, the referrer in the Delivery Portal is set to “cs.drexel.edu” (no www)
This is why you get a 401 error. Because app_id / app_code are correct and active, the only reason for a http 401 is a wrong referrer. We have confirmed locally that setting the referrer to https://cs.drexel.edu/~nim28/CI102/Projects/Project-1/trucking-gps.php does work.
Hope this helps!
Post a Comment for "Here-maps Routing Api Fails With Invalid Credentials, But Other Here-api's Continue To Work With Exact Same Credentials"