cors
This commit is contained in:
+10
-1
@@ -9,7 +9,16 @@ import { Socket, Server } from 'socket.io';
|
||||
|
||||
@WebSocketGateway({
|
||||
cors: {
|
||||
origin: '*',
|
||||
origin: [
|
||||
'http://localhost:3176',
|
||||
'http://localhost:3186',
|
||||
// 'http://132.248.80.196:3155',
|
||||
// 'http://132.248.80.196:3185',
|
||||
// 'https://pmodulospcpuma.unam.mx',
|
||||
// 'http://pmodulospcpuma.unam.mx:3015/',
|
||||
// 'https://modulospcpuma.unam.mx',
|
||||
// 'https://modulospcpuma.unam.mx:3015/',
|
||||
],
|
||||
},
|
||||
})
|
||||
export class AppGateway
|
||||
|
||||
@@ -50,7 +50,7 @@ export class InstitucionController {
|
||||
get(@Request() req) {
|
||||
const superAdmin: Operador = req.user.operador;
|
||||
|
||||
if (!superAdmin || superAdmin.tipoUsuario.id_tipo_usuario != 3)
|
||||
if (!superAdmin || superAdmin.tipoUsuario.id_tipo_usuario != 2)
|
||||
throw new ForbiddenException(
|
||||
'No tienes los permisos necesarios para acceder a esta información.',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user