跳至內容
選單
此問題已被標幟
2 回覆
19199 瀏覽次數

Put odoo into iframe and start getting error: Refused to display in frame because it sets "X-Frame-Options" to "DENY"

Change X-Frame-Options on source code to allow-from, or remove X-Frame-Options

But there is an error when creating an e-marketing

Blocked a frame with origin "https://xxxxxx.com" from accessing a cross-origin frame


頭像
捨棄
最佳答案

I had the same issue ( also happened to me when I added external url in the odoo Website, the redirections didn't work well )

Modify the Odoo Configuration File:
 
Ensure that your Odoo configuration allows cross-origin requests. 
Open your Odoo configuration file (usually located at /etc/odoo/odoo.conf).

Add or update the proxy_mode parameter to True:

proxy_mode = True

 then restart odoo : 

sudo systemctl restart odoo

and it should be working, if not then add the proxy_header configuration and allow_cors headers in your nginx , restart nginx and it should be working.


頭像
捨棄
最佳答案

Hi,

This seems something related to your deployment, so please be sure you are following the proper installation instructions.

[Reason:-You can't access a <iframe> with a different origin using JavaScript, it would be a huge security flaw if you could do it. For the same-origin policy browsers block scripts trying to access a frame with a different origin.]


please refer:-

https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame

https://github.com/odoo/odoo/issues/26672

Regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
5月 24
2105
2
11月 23
35884
3
12月 23
17715
0
12月 22
1646
2
12月 22
3086