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 X-Requested-With header #49

Merged
merged 2 commits into from
Aug 30, 2017
Merged

Conversation

userabuser
Copy link
Contributor

Add X-Requested-With header ("X-Requested-With": "XMLHttpRequest") so that frameworks that support checking the request type, e.g. Laravel, Symfony, Yii (and others, not necessarily PHP related) can use their respective helper methods e.g. in Laravel Request::ajax() etc to determine the type of request being issued.

Add X-Requested-With header ("X-Requested-With": "XMLHttpRequest") so that frameworks that support checking the request type, e.g. Laravel, Symfony, Yii (and others, not necessarily PHP related) can use their respective helper methods e.g. in Laravel Request::ajax() etc/
@userabuser
Copy link
Contributor Author

Ps. I know there is HttpHeaders option you can pass on instantiation but since this is a XMLHttpRequest by default I think it would be good to have it specified along with the defaults options.

@baptistedonaux baptistedonaux added this to the 2.7 milestone Aug 30, 2017
@baptistedonaux baptistedonaux changed the base branch from 2.6 to 2.7 August 30, 2017 13:19
@baptistedonaux baptistedonaux merged commit bb85358 into autocompletejs:2.7 Aug 30, 2017
@baptistedonaux
Copy link
Contributor

Thank you for your contribution.

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

Successfully merging this pull request may close these issues.

2 participants