Looking for a solution to use the Here Maps javascript map app key (https://developer.here.com/documentation/maps/3.1.20.0/api_reference/H.service.Platform.html) safely while having multiple subdomains.
currently we initialise the map as following:
this.platform = new H.service.Platform({
apikey: 'XXXX',
useCIT: true,
useHTTPS: true
});
The Here maps Javascript service asks for an api key to authenticate, and grands a GET when the api key is correct.
One of their safety methods is whitelisting, however we allow our users to create a subdomain like xxx.example.com, while accessing the same webapp.
One of HereMaps security options is the following:
- with the option Create a trusted domain for your app credentials (Insert values without protocol)
This option does not seem to work because it doesn't allow * (*.example.com). I disabled this option to be able to use the here maps service however I would rather add some security and not directly expose our APP ID..
I couldn't find a mention of oauth2 support for the here maps javascript service. So my questions:
- Does here maps support oauth2 authentication for their javascript map service?
- Are there other options than using a * for whitelisting subdomains?
- Is there a way that we can proxy our subdomains into our main domain. I thought about an Iframe but this seems cumbersome because we interact with the map?
- Perhaps an better approach?
Thanks in advance