cors is ok, just seems one chrome extension was bothering it

This commit is contained in:
adueck 2023-07-27 11:55:12 +04:00
parent 06f86d2509
commit 8dd63ad9c4
2 changed files with 2 additions and 2 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,OPTIONS",
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
credentials: true,
};
const app = express();

View File

@ -8,7 +8,7 @@ content-type: application/json
###
PUT https://account.lingdocs.com/feedback HTTP/1.1
OPTIONS https://account.lingdocs.com/feedback HTTP/1.1
content-type: application/json
{