DEV Community

Konstantin Filtschew
Konstantin Filtschew

Posted on • Edited on

1

Define Default URL for ActiveStorage to fix Mixed Content Error

Using ActiveStorage with external services like AWS S3 for saving and surfing attachments like images is great. The setup is well explained in Active Storage Overview in Ruby on Rails Guides.

But if you start using it, you will maybe encounter some problems, which are not that easy to find or debug within production. One of the problems we encountered was a Mixed content related to ActiveStorage. This was not a big problem at first. But after we added an iOS App, which was using WkWebViews, some random redirects to AWS S3 images stopped working. We couldn't even see connections for these images to ActiveStorage in logs, which made it harder to
debug.

Read on Qameta: Define Default URL for ActiveStorage to fix Mixed Content Error

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay