forked from UKSOURCE/cms.hailearning.edu.vn
UI Visa-VisaDetail
This commit is contained in:
11
server.js
11
server.js
@@ -32,16 +32,7 @@ app.set("layout extractStyles", true);
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use(cookieParser());
|
||||
app.use(
|
||||
"/assets",
|
||||
(req, res, next) => {
|
||||
// Cho phép mọi domain truy cập tài nguyên tĩnh
|
||||
res.header("Access-Control-Allow-Origin", "*");
|
||||
res.header("Access-Control-Allow-Methods", "GET");
|
||||
next();
|
||||
},
|
||||
express.static(path.join(__dirname, "assets")),
|
||||
);
|
||||
app.use(express.static(path.join(__dirname, "public")));
|
||||
|
||||
// Session configuration
|
||||
app.use(
|
||||
|
||||
Reference in New Issue
Block a user