cors is ok, just seems one chrome extension was bothering it
This commit is contained in:
parent
06f86d2509
commit
8dd63ad9c4
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue