This commit is contained in:
2026-08-14 16:03:47 +01:00
parent fd53e3f4fb
commit dfdc3b2840
2463 changed files with 186456 additions and 111315 deletions
+2 -5
View File
@@ -1,13 +1,10 @@
// src/middleware/cors/index.ts
var cors = (options) => {
const defaults = {
const opts = {
origin: "*",
allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"],
allowHeaders: [],
exposeHeaders: []
};
const opts = {
...defaults,
exposeHeaders: [],
...options
};
const findAllowOrigin = ((optsOrigin) => {