Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

The current implementation of the saveAsJson method is asynchronous, which works well in most modern environments. However, in certain contexts especially when dealing with strict Content Security Policy (CSP) headers asynchronous operations involving dynamic script execution or

blob-based web worker creation and execution 
can be blocked or restricted.

To overcome these CSP-related limitations and ensure compatibility with secure environments, we need to provide an option to invoke saveAsJson synchronously.

This would allow the method to complete its operation without using a web worker
, avoiding issues caused by CSP restrictions

This could be achieved by introducing a parameter like { synchronous: true } to control the execution mode while invoking the saveAsJson method.