Skip to content

how to config with https #2621

Answered by tabuna
theone-daxia asked this question in Q&A
Discussion options

You must be logged in to vote

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']:

 `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 boot() method in AppServiceProvider:

\Illuminate\Support\Facades\URL::forceScheme('https');

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants