Skip to content

Commit 4374b49

Browse files
committed
noneed to verify
1 parent d5cc953 commit 4374b49

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-rest-api.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,20 @@ public function background_request( $endpoint, $params, $method = 'POST' ) {
6363
// Setup a call for a background sync.
6464
$params['nonce'] = wp_create_nonce( 'wp_rest' );
6565
$args = array(
66-
'timeout' => 1,
67-
'blocking' => false,
68-
'method' => $method,
69-
'headers' => array(),
70-
'body' => $params,
66+
'timeout' => 1,
67+
'blocking' => false,
68+
'sslverify' => false,
69+
'method' => $method,
70+
'headers' => array(),
71+
'body' => $params,
7172
);
7273
if ( is_user_logged_in() ) {
7374
// Setup cookie.
7475
$logged_cookie = wp_parse_auth_cookie( '', 'logged_in' );
7576
array_pop( $logged_cookie ); // remove the scheme.
7677

7778
// Add logged in cookie to request.
78-
$args['cookies'] = array(
79+
$args['cookies'] = array(
7980
new \WP_Http_Cookie(
8081
array(
8182
'name' => LOGGED_IN_COOKIE,

0 commit comments

Comments
 (0)