我試圖將Flex應用程序與Google Checkout相集成,並且在我的本地計算機上運行正常的代碼在我的網站上測試時會拋出安全錯誤。Flex:嘗試訪問Google Checkout的安全性錯誤
這裏的錯誤:
Warning: Failed to load policy file from https://sandbox.google.com/crossdomain.xml
*** Security Sandbox Violation ***
Connection to https://sandbox.google.com/checkout/api/checkout/v2/request/Merchant/12345 halted - not permitted from http://www.mysite.com/demo/cartTest/main.swf
ERROR (flash.events::SecurityErrorEvent)#0
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#1
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#1
text = "Error #2170: Security sandbox violation: http://www.mysite.com/demo/cartTest/main.swf cannot send HTTP headers to https://sandbox.google.com/checkout/api/checkout/v2/request/Merchant/12345."
type = "securityError"
Error: Request for resource at https://sandbox.google.com/checkout/api/checkout/v2/request/Merchant/12345 by requestor from http://www.mysite.com/demo/cartTest/main.swf is denied due to lack of policy file permissions.
就像我說的,它運行良好本地。我怎樣才能解決這個安全錯誤?
我想我可能在我的flex應用程序中組裝google購物車,然後傳遞給頁面的.js以將數據發送到Google。 – DrANoel 2010-03-30 20:03:42