Changing ajax requests to use relative url path