Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

UnityWebRequest.Put() not working on WebGL

Discussion in 'WebGL' started by Gulliver, Jan 31, 2019.

  1. Gulliver

    Gulliver

    Joined:
    Jan 8, 2013
    Posts:
    97
    Just not working..
    error: Unknown Error
    method: PUT
    isNetworkError: True
    isHttpError: False
    responseCode: 0
    responseHeaders: (null)

    From Editor -- everything fine.
    From Standalone versions -- everything fine.
    In the WebGL -- all methods except PUT -- works fine (some problems with asset bundles, discussed last week).

    We checked our server traffic -- from WebGL version it receives only OPTIONS query.
    Server reply:
    < Server: nginx/1.14.0
    < Date: Thu, 31 Jan 2019 21:51:36 GMT
    < Connection: keep-alive
    < Access-Control-Allow-Origin: *
    < Access-Control-Allow-Credentials: true
    < Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD
    < Access-Control-Allow-Headers: Accept, X-Access-Token, X-Application-Name, X-Request-Sent-Time
    < Access-Control-Max-Age: 604800
    < Vary: Accept-Encoding, Origin

    After that -- silence...

    I was forced to return to the WWW class... But what is it'll be removed in the next update ?!

    P.S. We checked incoming queries from standalone version to the our server... There are no OPTIONS query AT ALL !! Only PUT.

    Is it my fault, dear devs ?
     
  2. dhindman

    dhindman

    Joined:
    Jan 28, 2016
    Posts:
    17