5 Replies Latest reply: Jul 29, 2016 4:04 AM by Onno van Knotsenburg RSS

    Publish app with QRS API gives XSRF error

    Mengyi Yuan

      Hello,

       

      I tried to write a simple .NET method to publish an existing app to a stream. The path that I used with QRS API is as below:

      qrs/app/ee227e84-a2b0-4ba7-b9ec-9fe3d1718308/publish?stream=6f287d6f-3e6f-4a5e-9857-3d800e99da28?xrfkey=0123456789abcdef

       

      However, it keeps giving me XSRF error ("XSRF prevention check failed. Possible XSRF discovered.") no matter I tested with Postman or from my own code, both of which I included the Header "X-Qlik-Xrfkey" with the same value 0123456789abcdef

       

      I have a lot of other Qs API calls that used the same testing mechanism, but they all passed.

       

      Is there anything wrong with my query above?

       

      Thanks a lot!

      Mengyi