Commit 1c12017bcb3066f112c53140a958048469593491

Authored by Wesnydy Ribeiro
1 parent ec0a45db

Allow access control origin for all

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
translate-api/app.js
... ... @@ -39,7 +39,7 @@ app.use('/video', express.static(settings.contentsPath));
39 39 */
40 40 app.use(function(req, res, next) {
41 41 res.setHeader("Access-Control-Allow-Methods", "POST, GET");
42   - res.header("Access-Control-Allow-Origin", "http://localhost:80");
  42 + res.header("Access-Control-Allow-Origin", "*");
43 43 res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
44 44 next();
45 45 });
... ...