[FIXED] SE REPARO UN ERROR CON LA VISTA MANTENIMIENTOUSUARIO.JSP

parent 9b04723f
...@@ -63,6 +63,7 @@ public class LoginServlet extends HttpServlet { ...@@ -63,6 +63,7 @@ public class LoginServlet extends HttpServlet {
Cookie cookieAuth = new Cookie("Authorization", "Bearer " + respuesta.getString("token")); Cookie cookieAuth = new Cookie("Authorization", "Bearer " + respuesta.getString("token"));
cookieAuth.setMaxAge(36000);//10horas cookieAuth.setMaxAge(36000);//10horas
response.setHeader("Set-Cookie", "key=value; HttpOnly; SameSite=none");
response.addCookie(cookieAuth); response.addCookie(cookieAuth);
} else { } else {
responseHelper.setMessage(respuesta.getString("message")); responseHelper.setMessage(respuesta.getString("message"));
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
const httpRequestt = { const httpRequestt = {
getproyectos() { getproyectos() {
return ajaxRequestSendBody({ return ajaxRequestSendBody({
url: 'http://pruebaintranet.sacooliveros.pe:8081/security-rest/api/'+ 'proyecto/listarProyectoUsuario', url: 'https://security-rest.sacooliveros.pe/api/'+ 'proyecto/listarProyectoUsuario',
type: 'POST', type: 'POST',
headers: { headers: {
"Content-type": 'application/json', "Content-type": 'application/json',
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
<!-- /global stylesheets --> <!-- /global stylesheets -->
<script src="../js/lib/cookies.js" type="text/javascript"></script> <script src="../js/lib/cookies.js" type="text/javascript"></script>
<script> <script>
var Authorization = "<%=request.getSession().getAttribute("Authorization")%>";
var codigo = "<%=(String) request.getSession().getAttribute("codigo")%>";
var sidebar = <%=(String) request.getSession().getAttribute("menu")%>; var sidebar = <%=(String) request.getSession().getAttribute("menu")%>;
var nombreUsuario = "<%=(String) request.getSession().getAttribute("nombre")%>"; var nombreUsuario = "<%=(String) request.getSession().getAttribute("nombre")%>";
var rolesUsuario = "<%=(String) request.getSession().getAttribute("roles")%>"; var rolesUsuario = "<%=(String) request.getSession().getAttribute("roles")%>";
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment