Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/helm/api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ php:
env: prod
debug: '0'
secret: ""
corsAllowOrigin: "^https?://.*?\\.api-platform\\.com$"
corsAllowOrigin: "^https?://(.*?api-platform\\.com|localhost(?::[0-9]+)?)$"
Copy link
Contributor

@teohhanhui teohhanhui May 21, 2019

Choose a reason for hiding this comment

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

Now fakeapi-platform.com is allowed! 😝

https://regex101.com/r/EA7Gzu/2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now? It was already possible.

Copy link
Member

Choose a reason for hiding this comment

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

No it wasn't because of the \. part. Indeed we must add it back.

Copy link
Contributor

@teohhanhui teohhanhui May 21, 2019

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

We don't call the demo from api-platform.com, so https://regex101.com/r/EA7Gzu/5 is enough.

Copy link
Contributor

Choose a reason for hiding this comment

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

trustedHosts: "^.*\\.api\\-platform\\.com$"
trustedProxies:
- 103.21.244.0/22
Expand Down