Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3317766
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:37:33+00:00 2026-05-17T22:37:33+00:00

I like the way Google Maps’ api is consumed, using a script include, but

  • 0

I like the way Google Maps’ api is consumed, using a script include, but I’m worried:

My api is “semi-private”, that is, accessible over the internet but should allow for secure transmission of data and some kind of authentication. The data should remain private over the wire, and one consumer shouldn’t be able to get at another’s data.

How can I use SSL and some kind of authentication to keep the data secure, but still accessible “horizontally” from a plain HTML page with no server-side proxy required? Do I need to manage keys? How will the keys be posted to the server without being intercepted? Can I use OpenId (or some other 3rd-party authentication) to authenticate api users, or do I have to create my own authentication mechanism? I’ve been all over Google and can’t find a good guide to designing and deploying my API securely.

Right now I’m using REST and AJAX to consume them, but cross-domain calls are impossible. Any help or a pointer in the right direction would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:37:33+00:00Added an answer on May 17, 2026 at 10:37 pm

    I’d probably use a dynamically-generated script tag with an SSL URL that included a key in the query string that was public-key encrypted. The server would use the private key to decrypt the query string parameter and return script that included the relevant information (or didn’t, if the key was invalid). Or something along those lines. But I’ll admit that I haven’t actually had to do it in practice.

    I’d also look for prior art, like Amazon’s S3 service.

    So:

    1. User provides secret
    2. Client-side code uses public key to encrypt the secret
    3. JavaScript appends a script tag that includes the URL
    4. Server handles the script request, decrypts the secret, checks it, and sends back the relevant response.

    You may well need two cycles, because otherwise the request to the server could be re-used via a man-in-the-middle attack. That would be:

    1. JavaScript appends a script tag that requests a unique key (probably with some confounding information, like the source IP and some random further key)
    2. Server responds with a one-time key tied to that IP
    3. User provides secret
    4. Client-side code uses public key to encrypt the secret, including the unique key from #1
    5. JavaScript appends a script tag that includes the URL
    6. Server handles the script request, decrypts the secret, checks it, and sends back the relevant response.
    7. The response could well be encrypted (to some degree) using the random key included in #1

    None of which I’ve actually done. (Or have I? BWAa-ha-ha-ha…) FWIW.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Google Maps API v2 and I'd like to be able to
I'm using the Google Maps API (v2) and would like to center the map
I am using Google Maps API for reverse lookup of an address, specifically Country,
Google Maps just made the API exactly like the real thing. So now I
For an ajax app I'm doing, I was using the google local search api
Is there a way I can have a google maps control on a web
Is there a way of preventing a Google Maps (JS, v3) map being displayed
Google maps api v3 allows styles to be applied to the map, including setting
Google maps now offers a way to share a place with what appears to
Ideally I'd like a way to enable the mouse wheel for scrolling in old

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.