skip to Main Content

I have an issue on my website.
When I accessed the website by IP everything is good but when I access the website by domain name I got this error:

Mixed Content: The page at `<URL>` was loaded over HTTPS, but
requested an insecure stylesheet `<URL>`.  This request has been
blocked; the content must be served over HTTPS.
https://141.105.67.4/en/games
https://g11games.com/en/games

Can you please help to solve this issue.

2

Answers


  1. Chosen as BEST ANSWER

    fixed by adding

    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 
    

  2. As the error states, you website is being loaded via https, but the scripts contained within the website, are being loaded via http. Likely, in your config, you have set APP_URL to point the http URL, so all assets on your website are using that as the base URL. Changing that to HTTPS should resolve the errors.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search