Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
3777 Ansichten

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
Verwerfen
Autor Beste Antwort
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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Dez. 22
1997
1
Juni 25
1712
3
Juli 25
3336
1
Mai 25
1478
1
Mai 25
1739