Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f28d6a3

Browse filesBrowse files
committed
feature #7760 Update status code for untrusted hosts (thewilkybarkid)
This PR was merged into the master branch. Discussion ---------- Update status code for untrusted hosts As of symfony/symfony#20962, the user will receive a `400 Bad Request`. Commits ------- b1887d9 Update status code for untrusted hosts
2 parents 4251e0e + b1887d9 commit f28d6a3
Copy full SHA for f28d6a3

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎reference/configuration/framework.rst

Copy file name to clipboardExpand all lines: reference/configuration/framework.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ the configuration of your web server. One simple solution to avoid these
340340
attacks is to whitelist the hosts that your Symfony application can respond
341341
to. That's the purpose of this ``trusted_hosts`` option. If the incoming
342342
request's hostname doesn't match one in this list, the application won't
343-
respond and the user will receive a 500 response.
343+
respond and the user will receive a 400 response.
344344

345345
.. configuration-block::
346346

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.