Security error accessing url

249 views
Skip to first unread message

Raj

unread,
Jul 28, 2010, 8:14:19 AM7/28/10
to Flex India Community, rajesh...@kodegenie.com
Hi Dear all
I am working on chart application and the data is
coming from XML its working fine and showing me all data in my local
machine,but when I am trying to retrieve this file from server I am
getting error:

This is my Error;

faultCode = "Channel.Security.Error"
faultDetail = "Destination: DefaultHTTP"
faultString = "Security error accessing url"

I tried a lot to do even I used crossdomain.xml file in my rootfolder.
My crossdomain.xml format look like this:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>

can any one help me on this guys its very urgent for me.
can any one send me the location which I am doing for my
crossdomain.xml file.

Vatsala Dorairajan

unread,
Jul 28, 2010, 8:50:59 AM7/28/10
to flex_...@googlegroups.com
Your crossdomain.xml needs to be this way -
<?xml version="1.0" ?>
 <cross-domain-policy>
<allow-access-from domain="*" />
<site-control permitted-cross-domain-policies="all" />
<allow-http-request-headers-from domain="*" headers="*" />
</cross-domain-policy

- i have faced this issue many times and it has always worked  with the above mentioned crossdomain.xml
Hope this helps
Vatsala

Rajesh Sharma

unread,
Jul 28, 2010, 9:05:04 AM7/28/10
to flex_...@googlegroups.com
<?xml version="1.0" ?>
 <cross-domain-policy>
<allow-access-from domain="*" />
<site-control permitted-cross-domain-
policies="all" />
<allow-http-request-headers-from domain="*" headers="*" />
</cross-domain-policy>


I tried this but still this is not working could you tell me the location of crossdomain.xml file so i can ensure it.
my location is like this:

public_html/crossdomain.xml

my project is under public_html so crossdomain.xml file in rootfolder

If any other ways please help me.its hell for me

Swapnil

unread,
Jul 28, 2010, 1:30:00 PM7/28/10
to Flex India Community
Hello there,

Are you developing a web application & trying to access web URL..? if
yes then,

Flash player maintain a security sandbox (you can Google on this). If
you are doing this for production then you can allow flash player from
Global security setting.

Open the below url and all you application Folder path in
that(Alternatively you can also add C: or D:)

Global Security Settings panel:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

Please let me know, if you have any doubts.

Thanks,
Swapnil

Veena Chezhian

unread,
Jul 28, 2011, 12:40:54 PM7/28/11
to flex_...@googlegroups.com
I am having hard time in getting rid of Security Violation error. I have the crossdomain.xml file and Security.allowDomain("*") in my main Flex application file. Is there anything else that i need to do. I am using BlazeDS/AMF channel to communicate with my backend Java app.


--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.


Reply all
Reply to author
Forward
0 new messages