Re: [flexcoders] Ruby on Rails Server and "Security error accessing url"

2007-09-12 Thread Tony Alves
Is the crossdomain.xml file in the root of admin.domain.com?

digitaljedis wrote:
>
> Hey Guys,
>
> I'm running my server through Media Temple while I develop my little
> applications before putting them onto dedicated servers and I'm
> running into a little problem.
>
> I've got the following code being used for connecting to Ruby on Rails
> through Flex: (actual domain removed)
>
> http://admin.domain.com/bars/list 
> "
> useProxy="false" method="GET"/>
>  url="http://admin.domain.com/bars/update 
> " useProxy="false"
> method="POST" result="listBars.send()"/>
>  url="http://admin.domain.com/bars/delete 
> " useProxy="false"
> method="POST" result="listBars.send()"/>
>  url="http://admin.domain.com/bars/create 
> " useProxy="false"
> method="POST" result="listBars.send()" contentType="application/xml">
> 
> -XML Stuff Here 
> 
> 
>
> This code works fine when pointing locally (ex: 127.0.0.1:3500) and
> all of the controllers and models online are working fine, I'm just
> getting the following error inside of Flex when opening my application
> online which is located at domain.com/flex-admin/:
>
> [RPC Fault faultString="Security error accessing url"
> faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
> at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler
>  
> ()
> at mx.rpc::Responder/fault()
> at mx.rpc::AsyncRequest/fault()
> at private::DirectHTTPMessageResponder/securityErrorHandler()
> at
> flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
>
> I've setup my crossdomain.xml as generic as it possibly could be and I
> know it's a security risk, but I'm still learning Flex:
> 
> 
> 
>
> Does anyone have any tips for how to get this to work? I would much
> rather spend my time working on a Flex admin panel than just another
> PHP/SQL driven one.
>
> Thanks!
> -Nick
>
>  


[flexcoders] Ruby on Rails Server and "Security error accessing url"

2007-09-12 Thread digitaljedis
Hey Guys,

I'm running my server through Media Temple while I develop my little
applications before putting them onto dedicated servers and I'm
running into a little problem.  

I've got the following code being used for connecting to Ruby on Rails
through Flex: (actual domain removed)


http://admin.domain.com/bars/list";
useProxy="false" method="GET"/>
http://admin.domain.com/bars/update"; useProxy="false"
method="POST" result="listBars.send()"/>
http://admin.domain.com/bars/delete"; useProxy="false"
method="POST" result="listBars.send()"/>
http://admin.domain.com/bars/create"; useProxy="false"
method="POST" result="listBars.send()" contentType="application/xml">

-XML Stuff Here 



This code works fine when pointing locally (ex: 127.0.0.1:3500) and
all of the controllers and models online are working fine, I'm just
getting the following error inside of Flex when opening my application
online which is located at domain.com/flex-admin/:

[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at private::DirectHTTPMessageResponder/securityErrorHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

I've setup my crossdomain.xml as generic as it possibly could be and I
know it's a security risk, but I'm still learning Flex:





Does anyone have any tips for how to get this to work?  I would much
rather spend my time working on a Flex admin panel than just another
PHP/SQL driven one.   

Thanks!
-Nick