I create a basic nodejs website on azure last days. I would like to have a server dedicate for nodejs, and on the other hand I have a classic HTML5 page on another domain.
The matter is that I have a CORS (cross origin problem) when my page try to connect to the azure website. Any solutions ? This is a bit of my code :
Server :
var express = require('express');
var path = require('path');
var app = express();
var server = require('http').createServer(app).listen(process.env.PORT || 5000);
var io = require('socket.io').listen(server);
Client :
var socket = io.connect('https://****.azurewebsites.net/');
Thanks for your time,
Regards.