2

I want my site to work via https so I setup .htaccess correctly but now when I open site, all assets loaded via

asset('/assets/css/style.css')

Are loaded via http. In config/app.php I have URL set with https, but both asset and Request::root() return http

How do I solve this?

I know asset() can accept second parameter true and return https but it's not really a solution to change that everywhere. Especially if I have to go back to http at some point

Vuk Stanković
  • 7,864
  • 10
  • 41
  • 65

1 Answers1

0

You need to force CloudFlare to https, check out their documentation.

You might redirect all unsecure requests to their secure counterparts, check this post.

Community
  • 1
  • 1
Mina Abadir
  • 2,951
  • 2
  • 15
  • 20