This question has been flagged
6 Replies
5217 Views


I installed successfully Odoo 16 on Ubuntu 22. (Yenthe script) When I run Odoo directly with the IP address on port 8069 everything functions. But when I run it with a domain name with a server block several things happen: The initial website generation gets stuck in an endless loop. After letting it run for a long time when I refresh the screen the website is created but I cannot edit it. I can click on the frontend editor button in the top left area but the edit mode does not appear. The editible area changes into dark grey with a large circle circling endlessly. When I alternate the same app wit the Ip number it works without a problem.

I am using cloudflare.

First I suspected the server block but I have been using suggested variations but no changes. The error log does not show obvious errors.

Does anyone out there have a similar experience? Are there solutions?


Avatar
Discard

I have exactly the same problem, has anyone resolved it?

I have exactly the same problem, were you able to solve it?

Best Answer

Did you follow this guide from odoo?
https://www.odoo.com/documentation/17.0/administration/on_premise/deploy.html

Your issue is on the web server (nginx) which connects the domain with the Odoo Server. In the documentation there is a detailed guide how to set up nginx.


Odoo Beratung Deutschland

Avatar
Discard
Best Answer

Hi guys, I resolved this issue. 

My situation is using Odoo docker and a swag docker with Nginx as https issuer and renewer.

After I searched the solution, I found adding next line to the Nginx or Swag config resolved the problem:

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


The config file looks like:

error_page 502 /502.html;

add_header 'Content-Security-Policy''upgrade-insecure-requests'; 
# redirect all traffic to https

server {

    listen 80 default_server;

    listen [::]:80 default_server; 

    server_name _;

    return 301 https://$host$request_uri;

}


Avatar
Discard

I have the same issue, but I work with Apache instead of Nginx as reverse proxy, ¿do you know the step to solve it?

Best regards and thanks a lot!

Emilio

Mixed Content: The page at 'https://rcr.ar/web#action=178&cids=1&menu_id=116' was loaded over HTTPS, but requested an insecure frame 'http://rcr.ar/'. This request has been blocked; the content must be served over HTTPS.

Best Answer

I have same issue. 
I am using nginx and docker. I've added line,

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

but still I can't reach editor panel through domain name. 

 

Avatar
Discard
Best Answer

Gracias Liu Cubeano, 

yoa solucíón es éste

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

Incluir en archivos de configuracion que está en sites-available (ngnix)

    escuchar 443 ssl;

    nombre_servidor nanotec.com.pe www.nanotec.com.pe *.nanotec.com.pe;

    # SFR Para solucionar website no editable por defecto o hay loop indefinido al editar

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


Avatar
Discard
Best Answer

Greetings, 


I am having the same problem, I am using Docker and Odoo 16. The log was not giving me relevant information about any failure, but the browser console was informing me about mixed content blocking.

With some searching I came across this solution, which for now for development purposes is fine for me.

https://support.mozilla.org/en-US/kb/mixed-content-blocking-firefox

It is similar in other browsers.

Avatar
Discard
Best Answer

It sounds like you may have encountered a bug with the Odoo frontend editor when using a domain name with a server block. To confirm this, it would be helpful to check the Odoo logs to see if there are any error messages related to the frontend editor. Additionally, you could try disabling the server block and using the IP address directly to see if that fixes the issue. If the problem persists, you may want to reach out to the Odoo community or the Odoo support team for further assistance.

Avatar
Discard