Skip to Content
Menú
This question has been flagged
2 Respostes
3736 Vistes

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 ?

Avatar
Descartar
Autor Best Answer
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


Avatar
Descartar
Best Answer

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]

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de des. 22
1985
1
de juny 25
1673
3
de jul. 25
3296
1
de maig 25
1437
1
de maig 25
1694