Proxy pac file doesn't work anymore in Chrome and Edge

2.2k Views Asked by At

I have a pac file hosted by my company server and it stopped working. We didn't made any change and the content is :

function FindProxyForURL(url, host) {
  if (dnsDomainIs(host, ".mydomain.com")) {
    return "DIRECT";
  }

  if (dnsDomainIs(host, "fonts.googleapis.com")) {
    return "DIRECT";
  }
   if (dnsDomainIs(host, "fonts.gstatic.com")) {
    return "DIRECT";
  }

  return "PROXY http://0.0.0.0:8080";
}

I can download the pac file by typing the url in the browser so he is still hosted, it still working in firefox but not chrome or edge.

It should block all other websites except "mydomain", we use it during online tests and to block students going in google or others websites looking for questions answers.

0

There are 0 best solutions below