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

  • SEARCH
  • Home
  • 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 117363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:19:27+00:00 2026-05-11T03:19:27+00:00

Our software manages libraries, museums, archives etc. We’d like to let the users (namely

  • 0

Our software manages libraries, museums, archives etc. We’d like to let the users (namely the catalogers, not the visitors) add some embedded content such as Google maps, YouTube videos etc. We’d like the solution to be as flexible as possible, as each embedded content provider has it’s own format. OTOH, we’d rather not allow the users to enter raw HTML, as this will impose both a XSS security risk and in case of erroneous HTML might screw up our surrounding web page.

I started looking into Google Maps today, and couldn’t find a way to handle it. I don’t want to let the users just copy the embedding HTML snippet into an item; I can’t embed the link URL provided, as Google won’t allow it; and I can’t let the user specify the coordinates, as I don’t want to use the Google Maps JS API (which means providing a built-in solution which we’ll have to maintain).

The question in not specifically about Google Maps, but Google Maps is quite representative. I’d love to hear suggestions for a flexible-yet-secure HTML embedding technique.

Thanks, Eran

  • 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. 2026-05-11T03:19:28+00:00Added an answer on May 11, 2026 at 3:19 am

    Would Caja work for you?

    Caja (pronounced ‘KA-ha’) is ‘virtual iframes’: it allows you to put untrusted third-party HTML and JavaScript inline in your page and still be secure. Caja

    • gives stricter control over what the code can do:
      • no redirects to phishing pages: the window object the untrusted code has is a fake one created by the containing page
      • no malware: all requests to URLs are proxied
      • no XSS: dynamic HTML sanitization
    • allows the untrusted code more power than is safe to give to code currently in iframes. Here are some possibilities:
      • floating frames (‘info windows’)
      • frames don’t have to be rectangular
      • frames can communicate without the current awkward protocols
      • a reader could broadcast geographic information about the current article; a maps gadget jumps to the location, while a news gadget gets local stories and a weather gadget pulls up the weather
      • similarly for financial info or entertainment info
      • an extensible syntax highlighter could have plugins that can mark up text but not leak the contents to another website
      • can be a bit channel (can only send information) or a code channel (can send functions)
      • hosting page can control who talks to whom
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently two users of our software from the same company started experiencing random closures
I am working on small scale deployment system for our in-house software that manages
Our software manages a lot of data feeds from various sources: real time replicated
Our software has data to store, so it also install MYSQL, a root user
Our software is written in Java and comprise many (7) projects. These projects are
Our company publishes our software product's documentation using a custom-built content management system using
I am experimenting with OpenCL to increase the speed of our software. We work
I've been asked to maintain a few of our software development tools; Clearcase (Views,
We are working on an update system for our software. The updater should run
I have created a TFS build definition to create our software releases. Now I

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.