Unity webGL work perfect offline but once upload to server , error

Hi , any one can help please , i’m using unity 5.3, I have problem uploading my webGL game on a server.
my game work perfectly on my local computer, after exporting the html5 it run on my browser now once I export it on a hosting servince, “firebase” when i lunch it it give me this error:

"An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
SyntaxError: expected expression, got ‘<’ "

even i create a blank unity project.
it giv me the same error.
.
please Help.

In the firebase.json file that gets created in your Firebase project folder, add the following line to the “hosting” block:

"trailingSlash": false

so it looks like this:

"hosting": {
    "public": "public",
    "trailingSlash": false
  }

Don’t forget to add a comma after the preceeding statement, otherwise you’ll get an error message when trying to deploy.

It seems that the UnityLoader.js script was unable to access the proper files and instead tried to read in the index.html .