I'm trying to check if url exist using JQuery and following
Checking a Url in Jquery/Javascript
However I am getting
XMLHttpRequest cannot load http://10.16.20.22:8080/xxx. No 'Access-Control-Allow- Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
My question is how can I check if url exist?