Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
20129 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
трав. 24
2172
2
лист. 23
35921
3
груд. 23
17757
0
груд. 22
1667
2
груд. 22
3123