-
-
Notifications
You must be signed in to change notification settings - Fork 848
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
Problem when specifying trusted_hosts #1006
Comments
I'm not sure to understand what's going on. Do you have a more detailed example? |
Try setting |
Running in to this issue as well. It seems to be because I have trusted hosts specified that do not include "localhost". When retrieving an item by IRI (/countries/0368c044-1bc9-4976-8f8e-299b09d11626), @dunglas Can we get this fixed? It makes it impossible to use the this library while specifying trusted hosts in Symfony. IMO, this should be classified as a security issue as the only way to get this working is to not specify any trusted hosts or add https://symfony.com/doc/current/reference/configuration/framework.html#trusted-hosts |
There was this pull request #1620 which sets the hosts based on the previous request context, but it happens too late. Symfony validates the |
@bwegrzyn Do you want to try to provide a pull request to fix this ? |
Untrusted Host "localhost"
when fixing theRequest
for filters.Untrusted Host "schema.org"
, etc. (from external IRI) when callingIriConverter::getItemFromIri
.The text was updated successfully, but these errors were encountered: