Quantcast
Viewing all articles
Browse latest Browse all 1522

Sending Requests from the Frontend on one domain to Backend on Another Domain

I have the website on the hosting (e.g. https://example.com), and I have a page on this domain, that makes request to the backend, located on another domain (e.g. https://example-2.com located on AWS EC2).Both domains have SSL certificates (I guess, both from Let's Encrypt).For some reason I am getting Bad Request Error.

On frontend I get net::ERR_SSL_PROTOCOL_ERROR.

On backend I see the following:

72.2xx.87.250 - - [17/Oct/2024 04:46:07] code 400, message Bad request version ('L·/¬Æc¹B²\x03sCveÅú®\x186_½4\x1anù³»0\x10ÔF£¬ªJÍgÁD¶#1!\x8blVÅ\x1a\x16s|Å\x94Bæ\x0eç\x94\x9e') 72.2xx.87.250 - - [17/Oct/2024 04:46:07] "\x16\x03\x01\x06ø\x01\x00\x06ô\x03\x03\x9a"\x12d̦#\x92Ë\x82è\x0d\x964Khwöã6\x9azãê.\x13i¨Åuëí \x93í\x1aØd\x9f´pr:t\x84ZI\x164¨Rü\x85%9[¢ië\x9f\x97<\x18Á_\x00 jj\x13\x01\x13\x02\x13\x03À+À/...\x88=K§wÜw1RHÜ6ÅVüwchb\x8bkpª\x07uf̱8©\x92ó©k\x09L·/¬Æc¹B²\x03sCveÅú®\x186_½4\x1anù³»0\x10ÔF£¬ªJÍgÁD¶#1!\x8blVÅ\x1a\x16s|Å\x94Bæ\x0eç\x94\x9e" HTTPStatus.BAD_REQUEST - 72.2xx.87.250 - - [17/Oct/2024 04:46:07] code 400, message Bad request version ('*HYçs\x9dRGö¢ºÝ\x90o\x00â¿Ð') 72.2xx.87.250 - - [17/Oct/2024 04:46:07] "\x16\x03\x01\x06Ø\x01\x00\x06Ô\x03\x03®¹zb\x84\x1c\x92\x97º»Ü£ùn\x1a'\\\x1b¨Ù\x11x\x1c\x06\x1dyÓWÕ...Ñ\x9bÍ...

I understand that the issue might be in encryption, but I have no clue how to tackle this.I am using CORS for Flask.

I tried to make requests https -> http and https -> https, but the result is the same.

They have Phusion Passenger on the hosting, and i have Nginx on my EC2.


Viewing all articles
Browse latest Browse all 1522

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>