Skip to content

Needed to add content type to run in Chrome #4

@RomSocial

Description

@RomSocial

Hi,

I would like to note that Chrome, running twitterwall by @remy complained about content type, so needed to add a line for it in server.js:

app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
res.header("Access-Control-Allow-Headers", "X-Requested-With");
res.header('Content-Type', 'application/javascript');
if (req.method === 'OPTIONS') return res.send(200);
next();
});

Otherwis works great!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions