Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
20024 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 24
2167
2
thg 11 23
35919
3
thg 12 23
17755
0
thg 12 22
1667
2
thg 12 22
3121