fix build
This commit is contained in:
1 parent
dae6e46a8e
commit
43fe0a384a
2 files changed
+4
-10
No files matched your search
@@ -44,14 +44,6 @@ async function checkAuth(c: Context, next: Next, headers?: HeadersInit) {
|
||||
await next();
|
||||
}
|
||||
|
||||
async function checkAuthCORS(c: Context, next: Next) {
|
||||
return checkAuth(c, next, {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
||||
});
|
||||
}
|
||||
|
||||
app.use("/run", checkAuth);
|
||||
app.use("/upload-url", checkAuth);
|
||||
|
||||
|
||||
Reference in new issue
Block a user