function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
m_a_sridharm_a_sridhar 

javascript blob: protocol not available in Lightning

Hello,

We have an AppExchange app (apsona) that relies heavily on the JavaScript "save as" functionality using blobs (see this StackOverflow article, for example). Our users make heavy use of this functionality with the current Salesforce Classic interface. With the new Lightning pages, though, attempting to use the save-as functionality produces this popup under Firefox:

User-added image

It looks like this is because of a Content Security Policy header that forbids blob: URLs within embedded pages, so it completely breaks this functionality. This is scary, because there is no replacement technique (that I know of) that provides as responsive a user experience. I'd greatly appreciate any feedback.

Thanks in advance.
Sridhar
 
Nick Butler 7Nick Butler 7
I have the same problem. How to we create a file for a user to download like an 'add to my calendar ics' using lighting??? 


[Blob is not a constructor]