I have been integrating my web application developed in spring with spring saml for single sign on. Followed the tutorial on this link.
Its working as expected. Authenticating user and redirecting to my application. The only issue I'm facing is on all requests, like on clicking tabs in menu bar or even on clicking some internal links, the application calls idp for authenticating user. And because of that ajax-jquery calls in the application are breaking with error : "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'sp_host_name' is therefore not allowed access."
My configuration is same as what is explained in the link mentioned. Please help if someone knows solution to this problem.