title: Volley return 403 error
body: <p><a href="https://i.stack.imgur.com/hLuOX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hLuOX.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/hLuOX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MxIfo.png" alt="enter image description here"></a>From two days i am trying to solve this issue but still i have no any result,why each and every time volley returning me 403 error. where i m wrong? i am using postman to check same webservice, it returns success result. But same thing when i am using in Android via volley or httpurlconnection getting 403 error.kindly help me to find my error.</p>
  
  <p>This is my code which i have tried:</p>
  
  <pre><code>  StringRequest jsonObjectRequest = new StringRequest(Request.Method.POST, Constant.posturl, new Response.Listener&lt;String&gt;() {
                      @Override
                      public void onResponse(String response) {
                        String result=response;
                      }
                  }, new Response.ErrorListener() {
                      @Override
                      public void onErrorResponse(VolleyError error) {
                          NetworkResponse response = error.networkResponse;
                          int status = response.statusCode;
  
                      }
                  }) {
                      @Override
                      public Map&lt;String, String&gt; getHeaders() {
                          try {
                                headers = new HashMap&lt;String, String&gt;();
                                headers.put("Content-Type", "application/json");
                                String credentials = Constant.USERNAME + ":" + Constant.PASSWORD;
                                String auth = "Basic " + Base64.encodeToString(credentials.getBytes(), Base64.DEFAULT);
                                headers.put("Authorization", auth);
                                return headers;
                          } catch (Exception e) {
                              e.printStackTrace();
                               return headers;
                          }
                      }
                      @Override
                      protected Map&lt;String, String&gt; getParams() {
                          Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
                          params.put("title", heading_edit_text.getText().toString());
                          params.put("content", body_edit_text.getText().toString());
                          params.put("Slug", heading_edit_text.getText().toString());
                          params.put("date", currentDate);
                          return params;
                      }
                  };
                  jsonObjectRequest.setRetryPolicy(new DefaultRetryPolicy(50000, 3, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
                  requestQueue.add(jsonObjectRequest);
  </code></pre>