This commit is contained in:
@@ -32,7 +32,6 @@ app.use(cors({
|
|||||||
methods: ["GET", "POST", "OPTIONS"],
|
methods: ["GET", "POST", "OPTIONS"],
|
||||||
allowedHeaders: ["Content-Type"],
|
allowedHeaders: ["Content-Type"],
|
||||||
}));
|
}));
|
||||||
app.options("*", cors());
|
|
||||||
|
|
||||||
app.get('/', async (req, res) => {
|
app.get('/', async (req, res) => {
|
||||||
const userAgent = req.headers['user-agent'] || '';
|
const userAgent = req.headers['user-agent'] || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user