Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8536 Lượt xem

Hello, i'm facing a strange bug. I installed the website module and the site is available but if I try to edit it the page is loading without succes I got a blank page. 

No error in my logfile

It works locally on my computer but not on my server

More information :

  • same python version
  • same major postgresql server
  • pip freeze are equals

The only difference is the OS, my local is on ubuntu 22.04 and the server is on ubunut 20.04

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

@Giovanni 
In the nginx conf file, you may add the line

add_header Content-Security-Policy upgrade-insecure-requests;

to your location block.

Ảnh đại diện
Huỷ bỏ

Perfect - thank you!

Tác giả Câu trả lời hay nhất

I found the solution.

That was a missconfiguration et my proxy.

Just had to add the "upgrade-insecure-requests" in my config.

The error was display in Js console but didn't notice it

Ảnh đại diện
Huỷ bỏ

Hello, can you explain exactly how to solve?
I have to add this to odoo.conf or to nginx.conf?