Skip to content

Commit f515aab

Browse files
committed
hint when using user context hash together with fos rest format listener
1 parent 68bada0 commit f515aab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Resources/doc/features/user-context.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ Finally, enable the subscriber with the default settings:
7878
user_context:
7979
enabled: true
8080
81+
.. note::
82+
83+
When using the FOSRestBundle ``format_listener`` configuration on all paths
84+
of your site, the hash lookup will fail with "406 Not Acceptable - No
85+
matching accepted Response format could be determined". To avoid this
86+
problem, you can add a rule to the format listener configuration:
87+
88+
``- { path: '^/_fos_user_context_hash', stop: true }``
89+
8190
Generating Hashes
8291
-----------------
8392

0 commit comments

Comments
 (0)