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

Document strange JsonResponse constructor behaviour #19882

Merged
merged 1 commit into from
May 16, 2024

Conversation

lol768
Copy link
Contributor

@lol768 lol768 commented May 13, 2024

Discussed on symfony/symfony#11679

@carsonbot carsonbot added this to the 5.4 milestone May 13, 2024
@carsonbot
Copy link
Collaborator

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@@ -730,6 +730,16 @@ The ``JsonResponse`` class sets the ``Content-Type`` header to
Only methods that respond to GET requests are vulnerable to XSSI 'JSON Hijacking'.
Methods responding to POST requests only remain unaffected.

.. danger::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. danger::
.. warning::

@OskarStark OskarStark requested a review from xabbuh May 15, 2024 03:14
@OskarStark
Copy link
Contributor

Thank you Adam.

@OskarStark OskarStark merged commit 460cdd7 into symfony:5.4 May 16, 2024
3 checks passed
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.

3 participants