fix: CORS not same origin

This commit is contained in:
2023-10-13 20:00:32 -06:00
parent c4600fa2be
commit ac1dd38cb0
2 changed files with 4 additions and 1 deletions

View File

@@ -45,7 +45,9 @@ app.use((req, res, next) => {
app.use(bodyParser.urlencoded({ extended: true, limit: '50mb' }));
app.use(bodyParser.json({ limit: '50mb' }));
app.use(morgan('dev'));
app.use(helmet());
app.use(helmet({
crossOriginResourcePolicy: false
}));
app.use(compression());
app.use(cors({
origin: '*',