Comments (3)
Can you show an example of such behavior? because its should be like that, I'm setting beforeSend in my local ajax usage and not touching the global ajaxSetup, and b.t.w quoted from http://api.jquery.com/jquery.ajaxsetup/
Description: Set default values for future Ajax requests. Its use is not recommended.
from feedback_me.
python/django requires csrftoken in POST params and to avoid each time add param I'm using such code:
$.ajaxSetup({
beforeSend: function(xhr, settings) {
if(!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
xhr.setRequestHeader("X-CSRFToken", $.cookie('csrftoken'));
}
}
});
from feedback_me.
fixed, you can try it yourself https://github.com/vedmack/feedback_me/blob/master/beta/jquery.feedback_me.js
from feedback_me.
Related Issues (20)
- It isn't possible to use two or more plugin per page. HOT 2
- google crome issue HOT 3
- Confirmation message after send HOT 9
- position right-bottom doesn't work HOT 4
- External IFrame Example isn't working after latest update. HOT 3
- Doesn't work with jQuery.noConflict HOT 2
- 2 small things HOT 2
- message sent even if the field contains only white spaces HOT 5
- Mutiple feedback doesn't work properly in IE8 and IE9 HOT 7
- problems using it in combination with select2 HOT 2
- fail to send mail HOT 1
- adding project to bower HOT 2
- delayed_options - custom template HOT 3
- do tags into clickable tags filters for datatable - yadcf HOT 1
- Does it has support to add more fields other than the predefined fields HOT 1
- Is it possible to have it appear on the bottom of the page? HOT 2
- Plugin doesn't close when clicking outside HOT 1
- Feature Request: a cancel button HOT 1
- Minor Class Name Typos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feedback_me.