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 578257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:14:27+00:00 2026-05-13T14:14:27+00:00

As you might know, browser’s security model does not allow a script loaded in

  • 0

As you might know, browser’s security model does not allow a script loaded in a page from http://www.example.com to make cross-domain requests (no AJAX calls to any other domain other than http://www.example.com). The Javascript file itself could have been served from a different domain altogether (www.javascript.com/myscript.js) and that is irrelevant. This is the Same-Origin Policy.

Flash also has something similar? But does Flash treat the origin to be the HTML page where the .swf file was loaded or origin is the domain which served the .swf file?

So http://www.example.com loads a .swf file from http://www.swf.com/myflash.swf. Now .swf can load resources only from http://www.example.com or only http://www.swf.com? I’m assuming there are no cross-domain.xml files setup on either example.com or swf.com.

  • 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-13T14:14:27+00:00Added an answer on May 13, 2026 at 2:14 pm

    I think, this article explains a lot about the problem you mention: http://www.foregroundsecurity.com/MyBlog/flash-origin-policy-issues.html

    From there:

    For website owners, all user-supplied
    content should be served from a
    completely separate domain. This is
    already implemented by Yahoo mail,
    Hotmail, Wikipedia, and many other
    major websites, but a huge variety of
    self-contained web applications do not
    do so (and if I can, for example,
    upload a malicious file to
    “apiwiki.twiitter.com”, I can perform
    cross-subdomain cookie attacks). A
    partial solution was made possible by
    Flash 10,0,0,2: SWF files served with
    a “content-Disposition: attachment”
    header will not execute when embedded
    in a web page. If all user-generated
    content is served with this header
    (not a bad idea in any case), it may
    limit your exposure, but this is not a
    very robust solution.

    It sounds like if you serve the content from a different domain and there are no cross-domain policy files, then flash cannot access files from your main server.

    Also, this article: http://supergeekery.com/index.php/geekblog/2009/12 states that

    And everything I write should be able
    to trust each other and share with
    each other. You may wonder if Flash
    Ads are a problem. Do they have this
    problem? No, there are Flash ads all
    over the internet, but since they are
    almost never hosted on the same server
    as the domain you’re visiting, they
    don’t get to access the data the web
    site’s primary code’s data
    . Cool.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is an interesting little gotcha. It helps if you… May 14, 2026 at 4:51 pm
  • Editorial Team
    Editorial Team added an answer In theory you could use a conditional like if ([label.backgroundColor… May 14, 2026 at 4:51 pm
  • Editorial Team
    Editorial Team added an answer Boost has a variety of auto-pointers, including ones for arrays.… May 14, 2026 at 4:51 pm

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.