fix cors origin
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
f0798759c2
commit
2e6840ce99
2
main.js
2
main.js
@ -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"));
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user