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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Hiding API Key in Javascript on Page

(0) ShareShare
ReportReport
Posted on by 2,563 Super User 2026 Season 1

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,501 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
omkarsupreme Profile Picture

omkarsupreme 47

#2
11manish Profile Picture

11manish 43

#3
Valantis Profile Picture

Valantis 37

Last 30 days Overall leaderboard