diff --git a/app/package.json b/app/package.json index d41b1ef..e01ba47 100644 --- a/app/package.json +++ b/app/package.json @@ -17,7 +17,6 @@ "main": "dist/index.js", "dependencies": { "archiver": "^7.0.1", - "cors": "^2.8.5", "dayjs": "^1.11.13", "dotenv": "^16.4.5", "ejs": "^3.1.10", diff --git a/app/src/index.ts b/app/src/index.ts index 1d4562a..29a6a7d 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -2,7 +2,6 @@ import express from 'express' import immich from './immich' import render from './render' import dayjs from 'dayjs' -import cors from 'cors' import { AssetType, ImageSize } from './types' import { decrypt } from './encrypt' import { log, toString, addResponseHeaders } from './functions' @@ -10,8 +9,6 @@ import { log, toString, addResponseHeaders } from './functions' require('dotenv').config() const app = express() -// Enable CORS -app.use(cors()) // Add the EJS view engine, to render the gallery page app.set('view engine', 'ejs') // For parsing the password unlock form