From f8fcefa0c1fb4cc5e466cd3444a608ead3ecb793 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 19 May 2022 15:53:11 +0800 Subject: [PATCH] Set ssl verify to none. --- app/models/site_feed.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/site_feed.rb b/app/models/site_feed.rb index d1d1c82..a0c583f 100644 --- a/app/models/site_feed.rb +++ b/app/models/site_feed.rb @@ -109,6 +109,7 @@ class SiteFeed http_req = Net::HTTP.new(uri.host, uri.port) if self.remote_site_url.include?('https') http_req.use_ssl = true + http_req.verify_mode = OpenSSL::SSL::VERIFY_NONE end http_req.open_timeout = 10 request = Net::HTTP::Post.new("/xhr/#{self.channel_key.pluralize}/feed_add_remote/#{self.feed_uid}", 'Content-Type' => 'application/json') @@ -128,6 +129,7 @@ class SiteFeed http_req = Net::HTTP.new(uri.host, uri.port) if self.remote_site_url.include?('https') http_req.use_ssl = true + http_req.verify_mode = OpenSSL::SSL::VERIFY_NONE end http_req.open_timeout = 10 request = Net::HTTP::Post.new("/xhr/#{self.channel_key.pluralize}/feed_remove_remote/#{self.feed_uid}", 'Content-Type' => 'application/json')