DataTables / DataTables/Plugins

POST https://xxxx 405

Open
#395 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi
I try to add autharization it give
POST 405 error in console
here is my code

```
$(document).ready(function() {
var username=localStorage.getItem("Username");
    var password=localStorage.getItem("Password");
	var url="https://lim.com.tr/app/public/api/v1/policelerim";

var table = $('#example').DataTable( {
"processing": true,
"serverSide": true,
"ajax":{
"url": url,
"type": "POST",
"beforeSend": function (request) {
request.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
}
}
} );

} );

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DataTables ajax configuration inside $(document).ready and reproduce the POST request to the URL shown, including the Authorization header. The issue is resolved only when the request behavior is understood and the 405 response is addressed or clearly explained; the report names no repository file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.