Skip to content

Commit

Permalink
[OLYMPUS-196]: Ensure all requests between Olympus and the other appl…
Browse files Browse the repository at this point in the history
…ication are done over HTTPS (#1145)

* [OLYMPUS-196]: Ensure all requests between Olympus and the other application are done over HTTPS

* Do not verify signature locally
  • Loading branch information
danharrin authored Nov 27, 2024
1 parent e9e40d5 commit 7bcbabf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/Console/Commands/ConnectOlympus.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ class ConnectOlympus extends Command
*/
public function handle(): int
{
$response = Http::post($this->argument('url'), [
$url = $this->argument('url');

if (str($url)->contains('://')) {
$url = (string) str($url)->after('://');
}

$response = Http::withOptions(
app()->environment('local')
? ['verify' => false]
: []
)->post("https://{$url}", [
'url' => config('app.landlord_url'),
])->throw();

Expand Down

0 comments on commit 7bcbabf

Please sign in to comment.