I'm using CORS in nodejs script as:
var express = require('express')
, cors = require('cors')
, app = express();
app.use(cors());
I'm using an AJAX request to fetch JSON data from another domain.
This works fine for all browsers namely, Mozilla Firefox and Safari. However, it does not work in case of Google Chrome. What am I doing wrong?
Aucun commentaire:
Enregistrer un commentaire