I deployed a Server on AWS EC2 instance. UI part is deployed on S3 bucket as a static website. After send a POST request from S3 to EC2 instance I get strict-origin-when-cross-origin error. The back-end app was created on Nest.js and CORS is already enabled.
Can somebody explain what I do wrong?