Hello,
I was wondering if someone could help me to install the module properly. I followed the steps of the README but I encounter cross domain exceptions.
The NodeJS server is on the port 8080 and the webserver on 80 so indeed we need to allow each other to communicate.
On the Drupal side, I have set up "Access-Control-Allow-Origin" to "*".
The page emits the events:
Emitting notification to Node.js server of new message in thread: 6 private_message_nodejs.thread.js:78:26
Emitting notification of necessity for user 9 to update their inbox private_message_nodejs.inbox.js:72:30
Emitting notification of necessity for user 1 to update their inbox private_message_nodejs.inbox.js:72:30But I keep getting that error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://domain.com:8080/socket.io/?EIO=3&transport=polling&t=Mq8jvts. (Reason: CORS request did not succeed).
I think the NodeJS doesn't receive the events or block them. I tried to modify several things in the app.js to allow any domain but it was not working either.
Does anyone has encounter the same problem?
Comments
Comment #2
phjou