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 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

Ask A Question

Stats

  • Questions 158k
  • Answers 158k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No language is perfect for all tasks, and Objective-C is… May 12, 2026 at 11:17 am
  • Editorial Team
    Editorial Team added an answer You should implement the INotifyPropertyChanged interface. May 12, 2026 at 11:17 am
  • Editorial Team
    Editorial Team added an answer You need to worry about more than just quoting; you… May 12, 2026 at 11:17 am

Related Questions

Our software manages libraries, museums, archives etc. We'd like to let the users (namely
Third party vendors using our software as a component view Windows Logo Certification as
Our software manages a lot of data feeds from various sources: real time replicated
The in-house developed software where I work connects directly to a mysql server here
I'm part of a software development company where we do custom developed applications for

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.