To make the static resource image available to site users, use a relative URL instead of the absolute URL. The relative URL must include the URL path name of your Experience Cloud site.
For example, change the HTML component's img src: /support/resource/13237000/PortalLogo
replace /support/ with the URL path of your own Experience Cloud site.
The relative URL resolves correctly regardless of the user's domain, because it is evaluated relative to the site's own URL path.
Another workaround is to upload the image to the Documents tab in Salesforce Classic and enable the "Externally Available Image" setting. This makes the document URL accessible to anyone, regardless of domain.
Note: You do not need to change the URL of the document, since it is stored on Salesforce's servers and is accessible to anyone once the Externally Available Image setting is enabled. The Documents tab is not available in Lightning Experience, so you must access this via Salesforce Classic.
When referencing a static resource in a Visualforce page, use the URLFOR function instead of a hardcoded URL. See the Additional Resources section for the URLFOR function reference.
URLFOR function in visualForce page
000387235

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.