コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3092 ビュー

Hi All , I can't call odoo from iframe . Both odoo and iframe are in same Nginx server .I added add_header X-Frame-Options SAMEORIGIN always; in Nginx configuration file .


When i click open site in new window it opens but the X-Frame option is Deny here . Is anything added in odoo to allow this ?

アバター
破棄
著作者 最善の回答
class Home(Home):
@http.route('/web/login', type='http', auth="none")
def web_login(self, redirect=None, **kw):
res = super(Home,self).web_login(**kw)
res.headers.remove('X-Frame-Options')
return res

Odoo denies x-frame-option in web_login . Just override the method and remove the option will work fine . And additionally needed to remove add_header X-Frame-Options SAMEORIGIN always; in Nginx configuration file


アバター
破棄
最善の回答

I am getting this message from odoo log : XMLSyntaxError: EntityRef: expecting ';', line 43, column 53 ( line 43, column 53 is pointing to "?")

[url=https://mcdvoice.me/]mcdvoice[/url]

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 22
1648
1
5月 25
231
0
5月 25
244
1
5月 25
608
4
5月 25
1900