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

parent 9b04723f
......@@ -63,6 +63,7 @@ public class LoginServlet extends HttpServlet {
Cookie cookieAuth = new Cookie("Authorization", "Bearer " + respuesta.getString("token"));
cookieAuth.setMaxAge(36000);//10horas
response.setHeader("Set-Cookie", "key=value; HttpOnly; SameSite=none");
response.addCookie(cookieAuth);
} else {
responseHelper.setMessage(respuesta.getString("message"));
......
......@@ -3,7 +3,7 @@
const httpRequestt = {
getproyectos() {
return ajaxRequestSendBody({
url: 'http://pruebaintranet.sacooliveros.pe:8081/security-rest/api/'+ 'proyecto/listarProyectoUsuario',
url: 'https://security-rest.sacooliveros.pe/api/'+ 'proyecto/listarProyectoUsuario',
type: 'POST',
headers: {
"Content-type": 'application/json',
......
......@@ -16,9 +16,9 @@
<!-- /global stylesheets -->
<script src="../js/lib/cookies.js" type="text/javascript"></script>
<script>
var Authorization = "<%=request.getSession().getAttribute("Authorization")%>";
var codigo = "<%=(String) request.getSession().getAttribute("codigo")%>";
var sidebar = <%=(String) request.getSession().getAttribute("menu")%>;
var nombreUsuario = "<%=(String) request.getSession().getAttribute("nombre")%>";
var rolesUsuario = "<%=(String) request.getSession().getAttribute("roles")%>";
</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