{"author_name":"Omiya Games","cat":"LD #35","comments":[],"epoch":1461081780,"likes":0,"metadata":{"p_key":"6157","p_author":"Omiya Games","p_authorkey":"20557","p_urlkey":"41597","p_title":"Unity WebGL export help","p_cat":"LD #35","p_event":"LD35","p_time":"1461081780","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"20557","us_name":"Omiya Games","us_username":"\/author\/taro\/","event_start":"1460678400","event_key":"33","event_name":"LD35"},"text":"<p>I seem to have trouble either building to or uploading my game&#8217;s WebGL build online so that Firefox wouldn&#8217;t give me a SecurityError or Incorrect Header.  It was playable at one point, but only on specific URLs  I&#8217;m using Unity 5.3.4f.<\/p>\n <p>Here&#8217;s what I&#8217;ve done so far:<\/p>\n <ul>\n <li>Removed scripts that evaluates or generates javascript code.  Long story<\/li>\n <li>Left the editor&#8217;s security URL untouched<\/li>\n <li>Left the player settings untouched (except the project name, obviously)<\/li>\n <li>Hit build to folder named &#8220;Hidden in Plain Sight (WebGL v1)&#8221;, leaving the debug checkbox unchecked<\/li>\n <li>Once built, change the <code>index.html<\/code> with <code><\/code> changed to <code><\/code><\/li>\n <li>Remove the <code>.htaccess<\/code> file (except for uploading on my own site)<\/li>\n <li>Zip index.html and Release folder.  This makes index.html in the root.<\/li>\n <\/ul>\n <p>Doing this method, I am able to play the game just fine on my own website (htaccess included).  When embedded in the Ludum Dare website, the game on firefox returns a SecurityError message (Chromium doesn&#8217;t do this).  Itch.io and GameJolt has similar problems (htaccess excluded).<\/p>\n <p>Edit: I also briefly tried to upload to Newgrounds, with similar results.  The only other webportal in consideration was Kongregate.<\/p>","time":"April 19th, 2016 11:03 am","title":"Unity WebGL export help"}