Azure / iisnode

Hosting node.js applications in IIS on Windows
Other
667 stars 101 forks source link

Serving static Socket.io.js on Azure NodeJS WebApp #77

Open m1ckr1sk opened 5 years ago

m1ckr1sk commented 5 years ago

We are having a problem serving a few of the socket.io client javascript files through node. The files are being served but have some characters added to the beginning and the end of the files which is breaking our browser. The added characters look suspiciously like Byte order marks.

When run locally on IIS it works fine. When running as an Azure web app (IIS 10.0) then the files are served with the extra characters.

A stack overflow post describes the exact same problem we are having.

Environment: Node 10.15.2 Socket.io 2.2.0 Express 4.16.4