Recently I encountered an issue with my TFS implementation. There is a WebService that is working perfectly if I use the Domain Address for TFS. "https://tfs.name.com/tfs"
.
However, if, internally, someone tries to use the local path: "https://servername:8080/tfs/"
TFS works, but when the WebService enters the picture, it gives an error as such:
NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://tfs.name.com/TfsWebServices/TfsWorkItems.svc/"controldetails"'.
And the function the Extension is supposed to do is not executed. The address for the control, wit the "servername" path does not load as well.
The control has a function that depends on a path:
$.ajax({
type: "GET",
async: false,
cache: false,
contentType: "application/json",
url: "https://tfs.name.com/TfsWebServices/TfsWorkItems.svc/Control",
data: "datatypes"
dataType: "json",
processData: true,
success:
function (response) {
result = response.GetResult;
},
error:
function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
});
I do believe it's a problem with Cross-Domain operations, but is it "Cross-Domain" since the "domain" for internal operations is the servername? Plus, normally it could be solved with the addition of a line on the website header, but TFS does not have a "Master" webpage, to my knowledge.
Has someone encountered a similar issue or a workaround for such a situation? I'm open to suggestions.
Thanks in advance!