Angular version is 1.3.13
I'm making a url request to a public url to get some data. For one url it functions but for the other it does not. I have no control over the server side.
The URL returns with 200 but AngularJS passes it to the error function. In my browser console the data is there, as JSON, but I do not have access to it in Angular. I was thinking it might the the http.get calling something before passing the data on.
I've tried with plain $http and a custom transformResponse but it still falls to the error of the custom response.
This is the URL:
https://uatmerchant.sixdots.be/oidc/.well-known/openid-configuration
These are the response headers from the URL:
Connection  
close
Content-Security-Policy 
reflected-xss block
Content-Type    
application/json
Date    
Mon, 15 Jan 2018 12:33:30 GMT
Set-Cookie  
BIGipServer~DMZ~pool_uat_5000=…omain=.uatmerchant.sixdots.be
Strict-Transport-Security   
max-age=15552000; includeSubDomains
Transfer-Encoding   
chunked
X_CORRELATION_ID    
UAT-MER-F5-20180115133330632
X-Content-Security-Policy   
reflected-xss block
X-Content-Type-Options  
nosniff
X-Frame-Options 
SAMEORIGIN
X-Xss-Protection    
1; mode=block
This is part of the data that is in the response in the browser console
request_parameter_supported true
claims_parameter_supported  false
scopes_supported    […]
0   openid
1   profile
2   email
3   address
4   phone
issuer  https://uatmerchant.sixdots.be/oidc
acr_values_supported    […]
0   tag:sixdots.be,2016-06:acr_basic
Here is the code making the call with the URL that is detailed at the start of this post above
var oohahhel = $sce.trustAsResourceUrl(urlVar);
$http.get(oohahhel)
    .then(
        function success(response){
            var jsonResponse = angular.fromJson(response);
            //process response
        }
        ,function error(reason){
            //process error
    });
 
    