Answers for "how to add access-control-allow-origin to header"

0

access-control-allow-origin htaccess

<IfModule mod_headers.c>    
    Header set Access-Control-Allow-Origin *
</IfModule>
Posted by: Guest on August-28-2020
0

access-control-allow-origin

app.use(function(req, res, next) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Headers", "X-Requested-With");
  next();
  });
Posted by: Guest on June-15-2021
0

access control allow headers

Access-Control-Allow-Origin: http://foo.example
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: X-PINGOTHER, Content-Type
Access-Control-Max-Age: 86400
Posted by: Guest on May-03-2020
0

set Access-Control-Allow-Origin header to * cors

var config = {
development: {
    //url to be used in link generation
    url: 'http://my.site.com',
    //mongodb connection settings
    database: {
        host:   '127.0.0.1',
        port:   '27017',
        db:     'site_dev'
    },
    //server details
    server: {
        host: '127.0.0.1',
        port: '3422'
    }
},
production: {
    //url to be used in link generation
    url: 'http://my.site.com',
    //mongodb connection settings
    database: {
        host: '127.0.0.1',
        port: '27017',
        db:     'site'
    },
    //server details
    server: {
        host:   '127.0.0.1',
        port:   '3421'
    }
}
};
module.exports = config;
Posted by: Guest on July-20-2021

Code answers related to "how to add access-control-allow-origin to header"

Browse Popular Code Answers by Language