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