DataTables / DataTables/Plugins
POST https://xxxx 405
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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