Blob error

Posted by: pedro.moraes on 29 May 2023, 3:18 pm EST

  • Posted 29 May 2023, 3:18 pm EST

    When using the new save method to create an sjs. I’m having the following error due to the blob

    Refused to create a worker from ‘blob:’ because it violates the following Content Security Policy directive: "script-src ‘self’ ‘unsafe-eval’ ‘report-sample’

  • Posted 30 May 2023, 4:06 pm EST

    Hello Pedro,

    As I can understand, you are facing issues when exporting spread to SJS blob.

    You can export the spread to SJS format using spread.save() method. In the success callback of this method, a blob object is passed. You can download or store this blob object.

    Please refer to the attached sample. In the attached sample, when the “export” button is clicked, the base64 string of blob object is stored on browser’s local storage and clicking on “import” button loads the base64 string in the spread.

    Sample: https://jscodemine.grapecity.com/share/i07InyfCy0GNQNgFLx2aHg

    Please let us know if you still face any issues. Also, please provide us a sample which replicates the issue. You may fork another sample, from the sample we have shared with you, to replicate the issue. This will help us to properly investigate the issue.

    Regards,

    Ankit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels