Search Unity

Networking UnityWebRequest SetRequestHeader can't set Cookie Header

Discussion in '5.3 Beta' started by bdovaz, Oct 18, 2015.

  1. bdovaz

    bdovaz

    Joined:
    Dec 10, 2011
    Posts:
    688
    I can't do it in Editor:

    http://docs.unity3d.com/ScriptRefer...working.UnityWebRequest.SetRequestHeader.html

    According to that link there shouldn't be any problem if platform != WebGL (also I don't know why I can't in WebGL):

    I'm trying to use it with Drupal's (7) Services module that requires sending a "Cookie" header for authenticated requests:

    https://www.drupal.org/node/910598
     
  2. bdovaz

    bdovaz

    Joined:
    Dec 10, 2011
    Posts:
    688
    Any news on that?
     
  3. Justinas

    Justinas

    Unity Technologies

    Joined:
    Sep 25, 2013
    Posts:
    12
    I have commited a fix that forbids cookie and cookie2 from being set only in WebGL platform.

    Other platforms may set those headers.
     
  4. bdovaz

    bdovaz

    Joined:
    Dec 10, 2011
    Posts:
    688
    But are you Unity staff? You don't have the badge on the forums.

    Anyway, thanks for reading this and fixing it.

    And one last question. What could I do for WebGL? (I don't know if you have read my drupal link above so you can understand my problem)