Add logging
This commit is contained in:
parent
80a3fdc1a6
commit
eb12112e11
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ async function handlePost(req: http.IncomingMessage, res: ServerResponse) {
|
|||
|
||||
http.createServer(async (req: http.IncomingMessage, res) => {
|
||||
try {
|
||||
console.log(req.method + " " + req.url, "from:", req.headers.origin)
|
||||
console.log(req.method + " " + req.url, "from:", req.headers.origin, new Date().toISOString())
|
||||
res.setHeader(
|
||||
"Access-Control-Allow-Headers",
|
||||
"Origin, X-Requested-With, Content-Type, Accept"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue