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 f0798759c2
commit 2e6840ce99

View File

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