srang Posted March 5, 2015 Share Posted March 5, 2015 I'm working on an embedded app that uses a combination of REST services in java controllers and visualize.js on the front end. Is there a way to share a user's session from the controllers with visualize? The reason I ask is because the slowest step of using either of the services is the authentication process and it seems wasteful to do it twice for one page (one serverside and one client side). Link to comment Share on other sites More sharing options...
vgaikwad Posted December 15, 2016 Share Posted December 15, 2016 You can send back the session cookies to the browser using http call to your application, the Set-Cookie header should do the job. Note: This method works for you app and jasperserver hosted on the same system, meaning the same host. Else if you want to use 2 different hosts you need to understand the CORS settings and use them in the right way to set cookies from other host. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now