3

Suppose I have a index.html hosted somewhere on the internet and I want it to use a CSS stylesheet which is stored as a Static Resource on a Salesforce Org.

Is this possible at all?

1 Answer 1

7

Yes, if you configure a Site. Go to Setup > Develop > Sites, create a new Site, and note the URL. Afterwards, you need to go to Setup > Develop > Static Resources, and upload your resource. Make sure that the "Cache Control" is set to "Public". Finally, you can use the resource with the appropriate URL, which will be something like https://configured-domain.naXX.force.com/resource/resourceName.

1
  • Thanks, do you know if it possible to reference a Font stored in static resource in external site this way? I am trying to without success
    – Raphael D
    Jun 13, 2022 at 6:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .