I have a setup involving
Frontend server (Node.js, domain: localhost:3000) <---> Backend (Django, Ajax, domain: localhost:8000)
Browser <-- webapp <
If you are using CORS middleware and you want to send withCredential boolean true, you can configure CORS like this:
withCredential
var cors = require('cors'); app.use(cors({credentials: true, origin: 'http://localhost:3000'}));