تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3636 أدوات العرض

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
ديسمبر 22
1929
1
يونيو 25
1498
3
يوليو 25
3193
1
مايو 25
1332
1
مايو 25
1587