1
0
-1

I have done the below settings on my local joget server to include the localhost in whitelist domain.

 

Now, when I use any of the json api's, I am always getting 400.

http://localhost:8092/jw/web/json/workflow/package/list

Error:

{"error":{"date":"Tue Sep 25 18:55:45 IST 2018","code":"400","message":""}}

 

Below error is logged in console.

 

 

I have tried with GET and POST reequests but its the same result. So What I am missing here?

Thanks in advance.

 

    CommentAdd your comment...

    3 answers

    1.  
      2
      1
      0

      For API IP whitelist, leave it blank. For API domain whitelist, just type in --> localhost Hope this helps.

      1. parashuram

        justin I did the same but it worked by giving * in the domain list.For localhost it did not work. Added ss in below comment. Thank you so much for your time.

      2. Anton Kuzmin

        Same here. * worked, localhost didn't

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Same here. Localhost didn't work. But when gave *, CSRF error stopped coming.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hey there! 

        A status 400 error in the server log is a response status code that indicates that the server was unable to process the request sent by the client due to invalid syntax. 

        In short, you don't need to type in the quote marks (") for the white list. 

        For example --> localhost

        Hope this helps! 

        1. parashuram

          justin I had tried without quotes also and reconfirmed now as well. Still the same result. Also i am able to browse the apps and run the processes so server is responding for that. Just for api's its not responding.Can this happen?

        CommentAdd your comment...