Please note it works on all platforms EXCEPT this one. Thinking I didn’t use a coroutine… I think I would have noticed at some point over the past 2.5 years that this script has been in place that I missed using a coroutine 
As for my tone, I already apologised for that in the last thread I created. Yesterday. Getting really sick of all this WebGL bull have to deal with and 90% of my posts would consist out of “i’m sorry” until someone at Unity decides to get up off their ass and actually answer one of my questions.
Since posting this I have discovered a few things. First of all, POST data is simply ignored. All data sent to the script HAS to be done via GET. First Chrome refused to send the cookie AT ALL because sending a cookie is not allowed under any circumstances… Then I placed my cookie in a field and hacked the $_COOKIE super global array to contain the cookie that I sent it. But then it turns out that POST data is simply ignored when sent from WebGL (or Chrome. Haven’t tested in other browsers yet) so this means that the cookie I am sending the script is never sent and thus authentication always fails. Thank you for making that obvious, Unity.
Now that I am finally able to send my cookie to WP via a GET field and hack the $_COOKIE super global to contain my cookie, I now find that for some reason I cannot yet explain, Wordpress doesn’t send me back the login cookie when I log in… meaning I have to create my own cookie but by recreating the auth_login functionality of Wordpress to generate a cookie that (as far as I can see) matches the cookie WP itself generates, sending my cookie back to WP fails to authenticate so I am again stuck but this time due to something on WP’s end, not Unity’s…
But why am I stuck? And why did I keep getting those errors that I mentioned in the original post? Simple… as per USUAL, with absolutely NO THANKS to any help from Unity, I figured out the problem on my own… Thanks to all the data I send with the WWW call simply being ignored and never received by the script (_REQUEST is as empty as _POST), it means that all my define statements fail to get set and on the line where I test if a certain definition is true and quit if not, it quits there… meaning the script sends back the CORS headers and absolutely no data. Trying to turn the empty response into a byte[ ] causes the runtime error.
So solution to the answer asked above is: Don’t Use POST. WebGL does not support POST.
So now I am left with a new problem… how do I use GET to post a value that contains a =? I.e. www.site.com?cookie=user=admin ?
Right, so thanks to no POST support I have to first substitute my = with somethign else and then parse the string on the server before I can hack the $_COOKIE array. Fine, done. Next? Now I need to figure out how to get Wordpress to send back the cookie that it used to send but now, for some reason no longer does on this platform.
Guess I will have to make another thread and make more apologies for my tone when I ask why the web build of my app is the only platform that cant send OR receive cookies in the headers.
Oh hell, it can’t hurt… I apologise for my tone if I am coming across as totally pissed off. It is frustration talking. All this unnecessary hassle WebGL throws into the mix. Super bloody annoying, is what it is
Step 1, make your game. Step 2, deal with 3 million issues that the build platform introduces. Step 3. Publish after 9 months of fixing WebGL related issues.
This topic can now be closed as I found the answer: WebGL sucks. Simple.
Unfortunately, I can’t escape it so the frustration continues on… 