Search Unity

  1. How has 2019.2 and the beta been for you so far? Give us feedback in this thread.
    Dismiss Notice

Networking UnityWebRequest SetRequestHeader can't set Cookie Header

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

  1. N3uRo

    N3uRo

    Joined:
    Dec 10, 2011
    Posts:
    641
    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. N3uRo

    N3uRo

    Joined:
    Dec 10, 2011
    Posts:
    641
    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. N3uRo

    N3uRo

    Joined:
    Dec 10, 2011
    Posts:
    641
    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)