From 06f86d2509a33d6ec36aa9043967a83f741778d6 Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 27 Jul 2023 00:12:56 +0400 Subject: [PATCH] debug --- account/src/index.ts | 2 +- account/test.http | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/account/src/index.ts b/account/src/index.ts index f184fd1..169f2c0 100644 --- a/account/src/index.ts +++ b/account/src/index.ts @@ -12,7 +12,7 @@ import dictionaryRouter from "./routers/dictionary-router"; const sameOriginCorsOpts = { origin: inProd ? /\.lingdocs\.com$/ : "*", - methods: "GET,HEAD,PUT,PATCH,POST,DELETE", + methods: "GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS", credentials: true, }; const app = express(); diff --git a/account/test.http b/account/test.http index 094ca0c..54c8b6c 100644 --- a/account/test.http +++ b/account/test.http @@ -4,4 +4,14 @@ content-type: application/json { "text": "کور ته ځم", "accents": false +} + +### + +PUT https://account.lingdocs.com/feedback HTTP/1.1 +content-type: application/json + +{ + "anonymous": true, + "apple": "is blue" } \ No newline at end of file