关闭证书验证
This commit is contained in:
parent
27935e4f5a
commit
5b9451da8b
@ -27,7 +27,8 @@ public function boot()
|
|||||||
//
|
//
|
||||||
|
|
||||||
Http::macro('remote', function ($api_token, $url) {
|
Http::macro('remote', function ($api_token, $url) {
|
||||||
return Http::withHeaders([
|
// 关闭证书验证
|
||||||
|
return Http::withoutVerifying()->withHeaders([
|
||||||
'X-Remote-Api-Token' => $api_token,
|
'X-Remote-Api-Token' => $api_token,
|
||||||
])->baseUrl($url);
|
])->baseUrl($url);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user