example.com and www.example.com domains

Hi guys, I have set APP_URL = https://example.com in my .env file
If I navigate the control panel with https://example.com/admin, when editing a record that has a FileUpload type field, the image is displayed correctly. If I browse with https://www.example.com/admin the image is no longer seen.
Is there a way to authorize the two domains (the one with and the one without www) in the .env file?
Was this page helpful?