i74ifa's avatar

http returned in pagination links laravel 9

I have a link in cloudflare that contains https but when I use paginate in laravel it returns absolute url http

my url:

https://example.com/page

paginate url:

http://example.com/page?page=1

route helper url: // its currect

https://example.com

Information that may help:

  • ssl cloudflare
  • laravel 9 with vuejs and inertia
  • nginx server error in devtool:
vue.m.d2280705.js:32 Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://example.com?page=2'. This request has been blocked; the content must be served over HTTPS.
``
0 likes
1 reply

Please or to participate in this conversation.