Rocancourt is trying to display a onebox for local PDF files with URLs on a subdomain. However, the onebox only works with domains, not subdomains, even with internal hosts whitelisted. After investigating the code, Rocancourt suspects the issue lies in the external_onebox method, where there is no mention of the whitelist. Further testing reveals that the problem is actually due to the subdomain not using HTTPS. Once the subdomain is switched to non-HTTPS, the onebox displays correctly, resolving the issue Rocancourt.
Firstly, congratulation for this open source project.
I want make clean display for local pdf files with onebox. I saw that is not to possible with attachment, so i link pdf files from url on same server.
With or without whitelist internal hosts, That work with domains but i don’t see onebox for pdf files from subdomains url (my discourse url is on a subdomain). For my tests, All domains/subdomains redirect on the same server.