[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1645
  • Last Modified:

FLEX Crossdomain Issue - "...is denied due to lack of policy file permissions"

I recently converted several HTTP based web services to use HTTPS on a new domain within my server. I also created a new flex project and re-imported the services via the Import->Web Service wizard with out any issue. When I attempt to debug the application locally I receive the following error:

Error: Request for resource at https://www.mydomain.com/path/to/service.asmx by requestor from http://localhost:3000/MyFlexApp/flex_bin/MyFlexApp.swf is denied due to lack of policy file permissions.

How do I allow localhost access to these services for testing/debugging purposes?

Here is my crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
      <site-control permitted-cross-domain-policies="master-only"/>
      <allow-access-from domain="*" to-ports="*" secure="false" />
</cross-domain-policy>

Also, if upload a Release Build of my project and run it from the server it works fine.

Thanks in advance for you help.
0
rwhitlatch
Asked:
rwhitlatch
  • 2
1 Solution
 
sunsonmaheshCommented:
Hi,

following might be solve ur problem....

right click the flash content->settings->privacy(second tab)->advanced setting

this will open adobe flash setting web page

in that click "Global Security Settings Panel" link ->click 'edit location' drop down list->add location

--mahe
0
 
rwhitlatchAuthor Commented:
mahe,

I tried adding both the l local swf file and the wsdl to the 'Global Security Settings Panel' but it did not have any affect. I still receive the same error message.

thanks,

rw
0
 
rwhitlatchAuthor Commented:
a
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now