Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Trusted hosts when deploying on platform.sh #2561

Closed
edwh opened this issue Feb 26, 2019 · 5 comments
Closed

Trusted hosts when deploying on platform.sh #2561

edwh opened this issue Feb 26, 2019 · 5 comments

Comments

@edwh
Copy link

edwh commented Feb 26, 2019

I'm new to API Platform. I've followed the instructions got a simple test application, which works on Docker. I've deployed it to platform.sh. I'm new to platform.sh too.

Right now I'm getting an error like this:

Untrusted Host "api.master-7rqtwti-24c2sfaqptb22.eu-2.platformsh.site"

I'm not sure what the correct fix is. I want the API to be generally accessible, but there's various scare stuff about allowing unrestricted access (e.g. here), and I can't see anything in the Symfony4 template which disables that check.

Any help appreciated.

@dunglas
Copy link
Member

dunglas commented Feb 26, 2019

Hello,

Where do you see this error? Did you tried the official instructions provided by Platform.sh? https://platform.sh/blog/deploy-api-platform-on-platformsh

@edwh
Copy link
Author

edwh commented Feb 26, 2019 via email

@dunglas
Copy link
Member

dunglas commented Feb 26, 2019

Maybe should you get in touch with Platform.sh's support?

@teohhanhui
Copy link
Contributor

Untrusted Host "api.master-7rqtwti-24c2sfaqptb22.eu-2.platformsh.site"

It means that Symfony is seeing that in the HTTP Host header, which is of course unexpected and should not be allowed.

@stale
Copy link

stale bot commented Nov 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 5, 2022
@soyuka soyuka removed the question label Nov 6, 2022
@stale stale bot removed the wontfix label Nov 6, 2022
@api-platform api-platform locked and limited conversation to collaborators Nov 6, 2022
@soyuka soyuka converted this issue into discussion #5141 Nov 6, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants