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