Closed stepanzubkov closed 1 year ago
Maybe we should define property in config like CC_API_HOST
?
You should check the host from request / server information (but if you checking it from HOST header you should be sure that there no vulnerabilities)
This is caused by host-name from docker (florgon-cc-api is the docker hostname)
And also, for sure, you also should checkout link (url) to the open page (cc.florgon.com)
When I deploy API on localhost, It gives normal urls. But on production It gives url with internal docker network name. I don't know why.
Fixed by f52d9ad and 1e38aac
Flask's
url_for
with_external=True
builds url using internal docker network and API gives wrong link:The links should be https://api-cc.florgon.com/v1/urls/xxxxxx/qr and https://api-cc.florgon.com/v1/urls/xxxxxx/stats