2014-02-18 32 views
0

我正在開發django網站和嵌入OpenERP使用標記。openERP嚮導問題與html iframe

實施例:

<html> 

<head> 
<title>my website</title> 
</head> 
<body> 
<h3>my website content </h3> 
<iframe src="http://192.168.1.54:8069/" width="1024" height="600"></iframe> 
</body> 
</html> 

創建嚮導(前銷售訂單行/)不開。上顯示錯誤的瀏覽器控制檯窗口類似

Uncaught SecurityError: Blocked a frame with origin "http://192.168.1.54:8069" from accessing a frame with origin "null". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "file". Protocols must match.

嘗試V6和V7但在這兩種情況下,它不能正常工作

我怎樣才能解決這個問題

回答

0

在相同的工作這個問題涉及到same origin policy問題。看起來你必須爲openerp網絡服務器配置enable cors config。儘管我已經想出瞭如何使用我自己的網絡服務器來做到這一點,但對於openerp網絡服務器卻無法做到這一點。查看更多的在CORS website

+0

PLZ添加一些示例如何添加CORS在其他服務器 – Gaurav