WebGL: Incorrect Header Check
I always get the following error:
An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:uncaught exception: incorrect header check
What I've tried to solve this issue:
1- Deleting .htaccess file
2- Changing index.html file like following(added gz to data js and mem to end of the words)
var Module = {
TOTAL_MEMORY: 268435456,
errorhandler: null, // arguments: err, url, line. This function must return 'true' if the error is handled, otherwise 'false'
compatibilitycheck: null,
dataUrl: "Release/Webgl.datagz",
codeUrl: "Release/Webgl.jsgz",
memUrl: "Release/Webgl.memgz",
};
but problem still exists. I've search lots of documents about this but couldn't find anything useful. Any ideas ?
Firsly this is a comment not an answer. And no, I didnt. nobody seem to care this problem although it is a very common one.
Well, it says to check the Javascript console. What does that say?
well, this post was 2 months ago, i dont remember.
I have rebuild and added memory and error disappear. I had this error with facebook sdk. I also have added domain name in facebook settings.
Answer by jimmoffet · Sep 12, 2016 at 01:07 AM
Removing print() and debug statements from my unity project scripts solved this problem for me.
Your answer

Follow this Question
Related Questions
WebGL version will not build 0 Answers
Web GL Export Does Not Work in 2020.1.06b16 0 Answers
Failed to Build for WebGL 1 Answer
"Unable to decode audio data" in webgl build 0 Answers
[WebGL 2.0] Texture2DArray support? 1 Answer