Score:0

Nginx reverse proxy errors on JS

uy flag

We have certain sites we need to mask our client IP addresses with a proxy when they browse to those sites. I have built NGINX on AWS Linux 2023. It works with simply google.com but does not work with any site using .js. Not sure what to try next.I have a domain --> A record --> ALB w/Cert --> EC2 w/Nginx

server {
   listen       443;
   server_name  ==my LB A-record==.com;

   proxy_connect_timeout       120;
   proxy_send_timeout          120;
   proxy_read_timeout          120;
   send_timeout                120;

   proxy_buffer_size   8k;
   proxy_buffers       16 8k;

   proxy_http_version 1.1;

   proxy_set_header Host $proxy_host;
   proxy_set_header X-Real-IP $server_addr;
   proxy_set_header X-Forwarded-For $server_addr;

   location / {
      proxy_bind $server_addr;
      proxy_pass https://myapplications.microsoft.com/;
   }
   access_log  /var/log/nginx/nbis/access.log;
   error_log   /var/log/nginx/nbis/error.log;
}

Error: Refused to execute script from 'https://==my LB A-record==/bundle/low-change-freq-vendors.54a65ab6.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

It SOMETIMES works. Why is the URL not changing to myapps? Why the MIME error?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.