Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

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:
    1,052
    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:
    1,052
    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:
    1,052
    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)