mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Close #10175
This commit is contained in:
parent
e807eff7bb
commit
b71643839c
@ -7,6 +7,7 @@ import * as fs from "node:fs";
|
||||
import * as http from "node:http";
|
||||
import Koa from "koa";
|
||||
import Router from "@koa/router";
|
||||
import cors from "@koa/cors";
|
||||
import mount from "koa-mount";
|
||||
import koaLogger from "koa-logger";
|
||||
import * as slow from "koa-slow";
|
||||
@ -41,6 +42,12 @@ app.proxy = true;
|
||||
|
||||
app.use(removeTrailingSlash());
|
||||
|
||||
app.use(
|
||||
cors({
|
||||
origin: "*",
|
||||
}),
|
||||
);
|
||||
|
||||
if (!["production", "test"].includes(process.env.NODE_ENV || "")) {
|
||||
// Logger
|
||||
app.use(
|
||||
|
Loading…
Reference in New Issue
Block a user