0 Replies Latest reply on Jan 1, 2013 5:04 AM by sunilkcs

    Rest API call from browser.

      Hi

             I am calling the Rest service in my jive5 setup, to do a blog post.  Please see the html i created. When i click on send button, it supposed to post the subject and content ("1004" is the blog id). I have already authenticated in firefox and i am in my home page. then i opened a new tab to test this html. I am getting.

       

      {

        "message" : "CSRF protection is enabled client failed to provide proper credentials.",

        "code" : 403001

      }


      This is API i used.

      REST Reference : Blog Service

       

      here is my html

      <html>

      <head>

      <title>My Page</title>

      </head>

      <body>

      <form name="myform" action="http://myjiveserver:8080/api/core/v2/blogs/1004/posts" method="POST">

      <div align="center">

      <br><br>

      <input type="text" name="subject" size="25" value="Enter the subject">

      <br>

      <input type="text" name="html" size="25" value="Enter the content">

      <br>

      <input type="submit" value="Send"><br>

      </div>

      </form>

      </body>

      </html>

       

      Whats is going wrong here!!