Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

melvin@e-defix.nl's avatar

Accept http and https

Is it possible to accept some requests over http and https in Laravel Forge?

I want to access some urls of my Laravel API from http and https: https://api.example.com/test -> works http://api.example.com/test -> gives a 301

How can I make the http://api.example.com/test work?

0 likes
2 replies
rawilk's avatar

Why? IMO it's better to have all endpoints secured instead of only some of them.

2 likes
cmdobueno's avatar

Agreed with above, i mean... it is like only locking you houses front door and leaving the back door wide open... Sure your front door is secure, but you are leaving the rear door wide open to anybody...

1 like

Please or to participate in this conversation.