Fix For:permission denied to access property ' ToString '

Source: Internet
Author: User

Originally Posted by Rwolffgang.

Hi Guys,
When developing a game it runs in an IFRAME (Facebook canvas) I encountered this error message in the JavaScript console :

Permission denied to access property ‘toString‘

I ' m using the Flash plugin and it turned out to being a security mechanism of Flash, which disallows to pulling content from Ano ther domain. Although the Flash plugin and MP3s is hosted on the same domain, the iframe let ' s Flash consider it as a cross-domain acc Ess. The domain, from which the content should is downloaded, needs to allow the access.

To solve this issue I had to place a crossdomain.xml file in the root of our domain.

<cross-domain-policy>    <site-control permitted-cross-domain-policies="all"/>    <allow-access-from domain="*" />    <allow-http-request-headers-from domain="*" headers="*"/></cross-domain-policy>
I know this was not a error report, but I ' m certain someone else would hit the same problem, hence I want this knowledge to be shared.

Cheers,
Robert

Sources:

http://willperone.net/Code/as3error.php

Https://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

From:http://community.createjs.com/discussions/soundjs/136-fix-for-permission-denied-to-access-property-tostring

Fix For:permission denied to access property ' ToString '

Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.