Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add headers option to defaultAJAXparams #50

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

asnoeyink
Copy link

I was not able to use the XMLHttpRequest headers option until I added a headers: {} default to the defaultAJAXparams object. It seems that the option was getting lost when the other options were added to the ajaxParams variable in the for loop.

npm run build changed the dist files a bit, feel free to not take those changes.

@calvinmetcalf
Copy link
Owner

so I'm not sure with credentials option is going to be something we're going to want to have on by default

@asnoeyink
Copy link
Author

Oh, yeah, definitely not. I was messing with it and didn't realize that it updated this pull request. :)

@ollyollyollyltd
Copy link

Is there any progress on merging this?

If the headers option is not present in defaultAJAXparams then it is discarded if added to the options, so currently adding headers to the options, as described in the documentation, does not have any effect.

@MarioSchuerewegen
Copy link

ah.  @ollyollyollyltd that is why it doesnt work...   been searching why..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants