fix cors origin

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-02-28 01:37:46 +00:00
parent dc50a90bd5
commit d8e6274c3d

View File

@ -14,7 +14,7 @@ const app = express();
app.use(helmet());
app.use(bodyParser.urlencoded({extended: true}));
app.use(cookieParser())
app.use(cors());
app.use(cors({origin: "https://client.tronnet.net"}));
app.use(morgan("combined"));