FlashRemoting et Violation de la sécurité Sandbox
Bonsoir,
j'ai une erreur et je serai reconnaissant pour votre aide.
j'ai une application tres simple en Flex que je veux connecter à la passerelle AMFPHP. mais j'ai ce message d'erreur :
Client.Error.MessageSend , Send failed , faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Security.Error error Error #2048: Violation de la sécurité Sandbox*: http://127.0.0.1/Test/bin-debug/TestTechnique.swf ne peut pas charger de données à partir de http://localhost/amfphp/gateway.php.
voila mon code:
Code:
1 2 3 4 5 6 7 8 9
| <!-- REMOTE OBJECT/SERVER SIDE FORM HANDLER -->
<mx:RemoteObject showBusyCursor="true"
id="ROservice"
destination="amfphp"
source="service" fault="faultHandler(event);">
<mx:method name="test_01" result="getTestResult(event);"/>
</mx:RemoteObject>
<mx:Button label="Lancer service" x="39" y="66" click="ROservice.test_01.send();"/> |
mon fichier services-config.xml est :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id="amfphp-flashremoting-service" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="amfphp">
<channels>
<channel ref="my-amfphp"/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
<channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://localhost/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
</services-config> |
Le service browser est:
http://localhost/amfphp/browser/index.html
La gateway est :
http://localhost/amfphp/gateway.php
Merci d'avance pour vos réponses.