Last post May 26, 2017 06:05 AM by EvenMa
May 25, 2017 08:32 PM|vishabedre|LINK
I am getting console error after while(2 min after) page is loaded if I am selecting drop down again.
XMLHttpRequest cannot load http://gthm-websense2.health.dohmh.nycnet:8080/auth/?du=aHR0cDovL2E4MTYtZG9…M/aWQ9MTQ5NTc0MTA4ODg1MiZfPTE0OTU3NDA3Njc0NDQ=&ip=MTAuMjQzLjE2My45MTo4MDgw. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'
header is present on the requested resource. Origin 'http://a816-dohbesp.nyc.gov' is therefore not allowed access. The response had HTTP status code 401.
May 26, 2017 06:05 AM|EvenMa|LINK
According to your description ,the error is occurred by a cross-domain request.
In your case, the site’s domain is a816-dohbesp.nyc.gov.
And then the site use ajax(ajax uses XmlHttpRequest) to send request to:
The above url’s domain is websense2.health.dohmh.nycnet ,for security, cross-domain access is not allowed ,so in this scenario will occurred cross-domain problem.
You could use jsonp or CORS to resolve this problem.
For more details about how to resolve this problem ,you could refer to the following link.
If you have any other questions, please feel free to contact me any time.