This PR removes the livechat's discuss route overrides that added `cors="*"` since they are not safe (different databases on our cloud are considered as SameSite). In the meantime, embed livechats won't work as expected since cors is prevented and will be fixed in a following PR. closes odoo/odoo#135260 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
14 lines
561 B
Python
14 lines
561 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.http import request, route
|
|
from odoo.addons.mail.controllers.webclient import WebclientController
|
|
from odoo.addons.mail.models.discuss.mail_guest import add_guest_to_context
|
|
|
|
|
|
class WebClient(WebclientController):
|
|
@route("/web/tests/livechat", type="http", auth="user")
|
|
def test_external_livechat(self, **kwargs):
|
|
return request.render("im_livechat.qunit_embed_suite", {
|
|
"server_url": request.env["ir.config_parameter"].get_base_url(),
|
|
})
|