Report this

What is the reason for this report?

App Platform mixed content issues

Posted on June 27, 2021

I keep getting mixed content errors on my Laravel App deployed on App Platform. What I tried so far:

  1. Editing the .htaccess file to
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Send Requests To Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
  1. Made sure the .htaccess files was in both root and public folders
  2. Added APP_URL variable to environment variables and ensured it starts with “https://…”

Not really sure what else to look for at this point. The app is not loading any of my images or javascript files (all in public folder) because of mixed content issue. Anyone have any ideas?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello @dotcomlabza

I would recommend you to run your app/website on a third party tool below: Why No Padlock?

If there is an HTTP URL linked in your app it will show in the result and you can replace it.

If the issue persists then I would recommend you to reach out to the support team along with the website URL and error message for further help.

Best, Dikshith

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.