Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    FIX: Mixed Content Errors while serving ODOO POSBOX over HTTPS

    In this article, well check different approaches to fix the mixed content errors we received in ODOO, served over HTTPS, while connecting with POSBOX. But before starting we need to know some basic terms related to it, lets begin:

    What is HTTPS ? What are the benefits of using HTTPS over HTTP ?

    When we visit a web page using HTTP protocol, your connection to the website is not secured. Hackers can easily do eavesdropping here, and can stole your data which webpage and your server communicates.

    That’s why we have HTTPS protocol, The 'S' at the end of HTTPS stands for 'Secure'. It means all communications between your browser and the website are encrypted. This keeps your information safe from hackers. HTTPS is extremely important if we are using any payment gateways or other password related things in your websites.

    What is "mixed content"?

    Mixed content error occurs when we try to access a web page which is on HTTPs but the web page’s source code is also pulling some other resources with the insecure HTTP protocol. In this scenario, browsers display a warning/error message saying that the page has both HTTPS and HTTP content, i.e MIXED CONTENT.

    Odoo POSBOX blocked by "Mixed Content" Security Policy

    After migrating ODOO from http to https, posbox stopped working we have this mixed content problem which prevents loading http resources from a page served in https. In other words if your point of sale is served over https, browser will block the http connection to the posbox. Error message which we are receiving in browser is something like :

    Mixed Content: The page at ' loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ''. This request has been blocked; the content must be served over HTTPS. send @ web.assets_common.js:954

    There are several approaches to fix this issue, which i ll explain in this article:

    Approach 1: Deactivate mixed content security in your browser. [ Works only with Firefox, No workaround found for Chrome/Safari till date ]

    To disable mixed content warnings in Firefox open Firefox, enter about:config into address bar and hit Enter. Using the search box, search for a setting called security.mixed_content.block_active_content. Once you have found it, set it to false.
    Unfortunately we cant disable this security in case of Chrome or Safari, we have to use some other approaches in order to fix this issue.

    Approach 2: Serve the point of sale over http. [ Have to compromise with loading some of ODOO data in plain HTTP ]

    We can serve our point of sale in plain HTTP, and rest of our ODOO as HTTPS by configuring nginx to only serve the point of sale route /pos/web in HTTP.

    Check sample nginx configuration file having this setup, LINK

    Approach 3: Migrate POSBOX as well, in HTTPS. [ Best Approach Found till date ]

    Install & configure nginx in posbox also, and append https:// with the IP address while configuring in your Point of Sale.

    I have created a image having nginx properly installed and configured in it, if someone looking for the same, can use it. what you need to do is :

    • Download Image [NEW]
    • Extract it, and burn it in the memory card, same way as you did for original posbox image.
    • Run your posbox, if you hit your posbox ip address in browser as : https://<posbox-ip-address> , youll see your POSBOX default homepage.
    • Put this https://<posbox-ip-address>, in your Point-Of-Sale configuration as: 
      That`s it…

    Thanks for reading this blog !!! I hope it will help someone.

    Your opinions, comments and suggestions are important to keep this extension updated and more usefull !!!

    . . .

    Comments (39)

    Add Your Comment

  • Jorge Saavedra
    Muchas gracias por la información, estuve 2 días navegando en internet buscando una solución… funcionando perfecto. Saludos
    • Anisha Bahukhandi
      Muchas gracias por sus valiosos comentarios.
      ¡Manténganse al tanto!

      Hello Jorge Saavedra,
      Thank you very much for your valuable feedback.
      Stay Tuned!

      Anisha Bahukhandi

  • Jamal

    i am using odoo V10 and the posbox image is not hiting to my ip address (https:// posbox ip address:8069

    • Anisha Bahukhandi
      Hello Jamal,

      Drop us a mail at support@webkul or raise a ticket to get better and quick assistance.

      Anisha Bahukhandi

  • Matt
    Hi Manish. Please share the steps taken to edit a posbox image to add new packages to it. I needed to add CUPS to it. Thanks.
  • Simon Gottberg
    Hi, does this work with Odoo 12? If not then do you plan to make a image with IoT Box with Nginx?
    • Manish Bisht

      The image uses the latest version available from Odoo. So, it should work with Odoo 12.
      Try once!!


  • Andreas Hochuli
    In order to establish a connection to the POSBox via https, I first have to open the default page of the box via https in the browser I intend to run Odoo POS and accept, that I want to access this address even without a valid SSL certificate. As far as I know, accepting this exception gets reset from time to time by the browser. Is there a possibility to make this permanent? I don’t thnik that it is possible to somehow get a valid certificate for a local IP address.
    • Manish Bisht

      Yes, the script is setup to generate new certs on every boot. The exception should be accepted by browsing the default page once before use.
      It’s not possible to get valid certs for a local IP.


  • Mike
    the Image file provided in solution 2, will not get an IP address, it is set to where can we get the newest version?
    also when will the letsencrypt version be available?
    • Manish Bisht
      Please try newer image uploaded. Earlier, the update wasn’t published on blog properly.

      Letsencrypt doesn’t offer certs on IPs(local or Public).
      You would be able to use Letsencrypt certs only if you map a public domain to it.


  • Shirly asprilla ramirez
    tienen idea si alguna de estas soluciones se ha implementado en la nueva versión del posbox (IOT Box) y ha funcionado?
    • Manish Bisht
      The attached image is of v17. You can download & burn it normally.

      As the private IP can be different for everybody, the image has been provisioned to read the local IP on every boot & generate self-signed certs for itself. You would then be able to access it over 443(https/SSL).

      So you would need to map a static IP to your POS & accept the SSL certs in order to use it over SSL.

  • Juan

    Thank you for writing about the different alternatives to solve this issue.

    I just tried your new.img by flashing it as the posboxv15.img, however the “new” box does not create a wireless access point. Instead the Posbox Status printed shows two IP adresses and

    Then, I connected directly through the ethernet interface to my laptop and I can reach the configuration page through (not https). I see that I have v17, however, when I go to the WiFi configuration page, there is no neighbouring SSID offered, although the box with the standard image v15 sees, besides mine, all of the multiple neighbouring routers in the vicinity.

    Is this an expected behaviour? Am I missing some step in the setup of this special image?

    Thanks in advance,


    • Manish Bisht

      You may try our new image. This time it reads the local IP received via DHCP protocol. Browse the IP over https(without 8069).

      If you plug in the ethernet cable, all Wi-Fi related functionalities will be disabled as a wired network connection is available.


      • Juan José Trujillo
        Thank you Manish for your answer,

        Indeed what I explained earlier has been experienced with new.img (v17?) and unfortunately there seems to be something wrong with the IP taken by the PosBox (RP3). My systems take an address in from the router, however the PosBox takes (apparently) the address

        The address of the posbox is always the same, independently of turning it on w/o connecting it via cable to the router. When I check my router, then the system is connected, however no IP has been provided to the system. There must be an issue with the DHCP in this image.

        • Manish Bisht

          Please try newer image uploaded. Earlier, the update wasn’t published on blog properly.


  • Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again