This commit is contained in:
adueck 2023-07-27 00:12:56 +04:00
parent 3e8d86df57
commit 06f86d2509
2 changed files with 11 additions and 1 deletions

View File

@ -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();

View File

@ -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"
}