Browser: Chrome
Angular 2
Scenario: I have 2 two apps: App 1 and App 2 , Using SSO(Hosted login page) the user signs into App 1 and cookie is added to the browser store.
App 1 periodically tries to revalidate session by invoking the the below get request:
const url = https://mydomain/authorize?response_type=code&client_id=myclientid&redirect_uri=MyRedirectUrl&scope=openid&prompt=none';
Below is the code:
this.http.get(url).subscribe(data => {
const test = data
}, error => {
this.logout();
});
We are using angular 2 http service to make the above get request and the cookie is not being passed in the request header.
We are also seeing a CORS issue in the browser(I have added the URL to CORS in the client settings)
I have also tried renewAuth method but I am seeing the same issue
Any suggestions?