web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Hiding API Key in Java...
Power Pages
Unanswered

Hiding API Key in Javascript on Page

(0) ShareShare
ReportReport
Posted on by 2,429 Super User 2025 Season 2

Hi guys,

 

maybe somebody already solved that one.

I have a page which loads a map and needs an API key to get the informtion to show the map.

For sure the Key should not be visible inside the page itself, so I need to hide or secure it somehow.

 

Unfortunately the side is client run, so it must be embedded inside the JS of that specific page.

Is there an easy way to hide it or other options using the existing possibilities?

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    No real way to hide it if it is in JavaScript.

    Most of the Mapping will have additional settings where you can set the allowed calling pages to try to limit its use  to only your your site urls etc Depending on the maps/api's you are using some will also allow calls from .NET etc (for these you could use the Portals support of OAuth Implicit Grant Flow)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard