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

[2.x] Return json response when the request expects a json #247

Merged
merged 2 commits into from
Jan 25, 2021

Conversation

nmfzone
Copy link
Contributor

@nmfzone nmfzone commented Jan 24, 2021

There is known issue with Laravel Sanctum in Postman (postmanlabs/postman-app-support#2418 (comment)).

If sanctum/csrf-cookie support returning JsonResponse, somehow it fixed those issue. So, when a Postman user sending request to the sanctum/csrf-cookie, they need to pass Accept header as application/json to make it working.

@driesvints driesvints changed the title Return json response when the request expects a json [2.x] Return json response when the request expects a json Jan 24, 2021
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.

2 participants