Update express.js
This commit is contained in:
parent
749f29dbb1
commit
2aac0145f9
@ -43,7 +43,7 @@ app.use(methodOverride());
|
||||
app.use(helmet());
|
||||
|
||||
// enable CORS - Cross Origin Resource Sharing
|
||||
var allowedOrigins = ['http://localhost:8080', 'http://127.0.0.1:8080'];
|
||||
var allowedOrigins = ['http://localhost:8080', 'http://127.0.0.1:8080', 'https://adminapp2.loquedeverdadimporta.org'];
|
||||
|
||||
app.use(cors({
|
||||
origin: function (origin, callback) { // allow requests with no origin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user