Search Unity

Resolved Warning about "Content-Type" being configured incorrectly

Discussion in 'Web' started by Chris-Trueman, Feb 20, 2022.

  1. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,261
    I'm trying to get my webgl build setup and I am currently experiencing an issue when the game loads.

    The warning I am getting is this.
    "HTTP Response Header "Content-Type" configured incorrectly on the server for file Build/TruthAndLiesWebGL.wasm , should be "application/wasm". Startup time performance will suffer."

    I had to switch off compression for the build for it to load. Which is does now only it comes with that warning.

    Is there anything I can do to fix the warning.

    Oh and a link to the app
    https://pryzngames.com/Games/TruthAndLiesWebGL/index.html
     
  2. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,261
  3. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    448
    As it's server configuration issue, it's almost impossible to help. You need to readup on the documentation of your server and Unity's documentation.
     
    De-Panther likes this.
  4. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,261
    Yeah, it has to do with server setup. The .htaccess file is there and setup how Unity docs examples show for Apache. Just checked now and it's working fine, had to clear cache or something to get it working correctly.
     
  5. wechat_os_Qy0yNuWOPTLPsEd5bu6NDEglI

    wechat_os_Qy0yNuWOPTLPsEd5bu6NDEglI

    Joined:
    Nov 14, 2022
    Posts:
    1
    Have you solved it yet? Can you tell me how to fix it.
     
  6. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,261
    Once everything was setup correctly on the server, it fixed itself after clearing the cache.