-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Unable to edit Odoo 17 website. Mixed Content Error #3441
Comments
The website editor. Try editing the website. I did get the recruitment module to work no problem |
@BayBreezy this took way to long to fix, none of the suggestions worked add a transform rule in cloudflare modify response headers match your odoo domain please note i also have amended some traefik labels, but im not sure they are even necessary at this point |
Thanks for the hard work @djsisson , |
- traefik.http.routers.odoo.entryPoints=http
- traefik.http.middlewares.csp-header.headers.customResponseHeaders.Content-Security-Policy=upgrade-insecure-requests
- traefik.http.routers.odoo.middlewares=gzip,csp-header
- 'traefik.http.routers.odoo.rule=Host(`odoo.domain.com`) && PathPrefix(`/`)'
- traefik.http.routers.odoo.priority=100 this is for http, you would need to modify for https also i added this volume mount -
type: bind
source: ./odoo.conf
target: /etc/odoo/odoo.conf
contents: |
[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
proxy_mode = True i also modified the web.base.url and web.base.url.freeze in Settings -> Technical -> System Parameters in dev mode |
note the volume mount will remove the admin password if u have one set up |
Ok. Thank you. I will give this a shot when I am around the computer again. I will let you know if it helped |
@djsisson well that didn't work :( |
@BayBreezy the other option is to install a plugin for traefik that modifies headers, and the nyou can jsut modify the Location header using a regexp, similar to what i did in cloudflare |
@djsisson , I will have to do that... after learning how ytaefik works lolol. |
Well maybe you could add nginx to the compose and route all traffic through that |
Description
I created an Odoo 17 website with the 1-click service.
I was able to add the Recruitment module.
When I tried editing the Website, the editor would not open, I kept getting this error in the web console
After some amount of digging, i stumbled on this post: Mixed Content Error where someone stated that adding a few headers to the Nginx config would fix the problem.
I am not sure of how to do this in the UI of Coolify. This is what I see for this service:
Can you help me or point me to the docs that say how we can add the different heders to the proxy file?
Minimal Reproduction (if possible, example repository)
Exception or Error
Mixed Content: The page at 'https://odoo.coolify.behonbaker.com/web#action=247&cids=1&menu_id=176' was loaded over HTTPS, but requested an insecure frame 'http://odoo.coolify.behonbaker.com/'. This request has been blocked; the content must be served over HTTPS.
Version
4.0.0-beta.335
Cloud?
The text was updated successfully, but these errors were encountered: