how to config with https #2621
Answered
by
tabuna
theone-daxia
asked this question in
Q&A
-
how to config with https when login? |
Beta Was this translation helpful? Give feedback.
Answered by
tabuna
May 28, 2023
Replies: 1 comment
-
Orchid does not regulate You can learn how Laravel regulates http/https through the `isSecure()` | `$_SERVER['HTTPS']` This global variable should be set by your Apache/Nginx/Caddy/etc. web server. If you don't have control over the web server, you can use a workaround by adding the following line to the \Illuminate\Support\Facades\URL::forceScheme('https'); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
theone-daxia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Orchid does not regulate
http/https
in any way. This is not the responsibility of the package.You can learn how Laravel regulates http/https through the
symfony/http-foundation
package. To determine whether a conversation is protected, it checks the value of$_SERVER['HTTPS']
:This global variable should be set by your Apache/Nginx/Caddy/etc. web server.
If you don't have control over the web server, you can use a workaround by adding the following line to the
boot()
method inAppServiceProvider
: