Hi!!

 

You have to make a socket policy master SERVER, it’s not just an http
request to port 843. 

You need a server listening on port 843 responding to requests but not as a
http protocol.

 

Here you have one that is working fine:

http://blog.zappmonkey.com/2008/01/13/tcltk-flash-socket-policy-server/

 

 

Jesus Iglesias

 <http://blog.osusnet.com> http://blog.osusnet.com

 

 

 

De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de ivo
Enviado el: martes, 15 de abril de 2008 6:01
Para: [email protected]
Asunto: Re: [flexcoders] Loading socket policy files q

 

I am getting sick of re-reading the Socket Policy update doc.

Seems the Flash Player is always failing to load the master socket policy. I
see in policylog.txt:

Warning: Failed to load policy file from
http://mysite.com:6666/crossdomain.xml
Error: Request for resource at http://mysite.com:6666/accounts/login by
requestor from http://192.168.1.100/main.swf is denied due to lack of policy
file permissions.

Sniffing the http I dont see anywhere a request for the master socket policy
file at http://mysite.com:843 . The logging statements show that the line

Security.loadPolicyFile('xmlsocket://mysite.com:843');

is getting hit tho.

going to http://mysite.com:843 returns an xml socket policy file:

curl -v http://mysite.com:843

< HTTP/1.1 200 OK
< Date: Tue, 15 Apr 2008 03:55:09 GMT
< Server: Apache
< Last-Modified: Tue, 01 Apr 2008 21:32:45 GMT
< ETag: "10c81a9-119-47f2a9fd"
< Accept-Ranges: bytes
< Content-Length: 281
< Connection: close
< Content-Type: application/xml
< 
<?xml version="1.0"?>
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> 
<cross-domain-policy>
  <site-control permitted-cross-domain-policies="master-only"/>
  <allow-access-from domain="*" to-ports="6666"/>
</cross-domain-policy>
* Closing connection #0


So what am I missing?

- Ivo

----- Original Message ----
From: ivo <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, April 14, 2008 3:04:00 PM
Subject: Re: [flexcoders] Loading socket policy files q

That should have been...(http://mysite. com:843/crossdomain . xml
<http://mysite.com:6666/crossdomain.xml> ).

also, I dont have control of the server so I cannot place a socket policy
file at port 6666

Thanks,

- Ivo

----- Original Message ----
From: ivo <cervantes_vive@ yahoo.com>
To: FlexCoders <[EMAIL PROTECTED] ups.com>
Sent: Monday, April 14, 2008 2:50:59 PM
Subject: [flexcoders] Loading socket policy files q

My app is hosted on a server that has a master Socket policy file served
from port 843 (http://mysite. <http://mysite.com:6666/crossdomain.xml>
com:6666/ crossdomain. xml):

<cross-domain- policy>
<site-control permitted-cross- domain-policies= "master-only" />
<allow-access- from domain="*" to-ports="6666" />
</cross-domain- policy>

In the code I explicitly load the master policy file, yet the player still
tries to load

http://mysite. <http://mysite.com:6666/crossdomain.xml>  com:6666/
crossdomain. xml

And fails when it doesnt find one preventing me from communicating with the
service. Is there a step I am missing?

Thanks,

- Ivo

 

 

 

Reply via email to