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

Send JSON response if request is an AJAX request #75

Merged
merged 2 commits into from
Sep 21, 2020

Conversation

stainleebakhla
Copy link
Contributor

Hi,

If client has requested for a JSON response, as in case of an AJAX request, then Fortify should return JSON response. Currently Fortify returns a plain response which may throw errors on client side (jQuery for ex).

This PR fixes this bug.

Thanks

@stainleebakhla stainleebakhla marked this pull request as ready for review September 21, 2020 17:58
@taylorotwell taylorotwell merged commit c3601ae into laravel:1.x Sep 21, 2020
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.

None yet

2 participants