Error While Loading Reports in Viewer Component

Posted by: sagar.agarwal on 19 September 2024, 2:34 am EST

    • Post Options:
    • Link

    Posted 19 September 2024, 2:34 am EST - Updated 19 September 2024, 2:39 am EST

    Hi Team,

    We tried following the steps to integrate the viewer component as mentioned in the documents and we are unable to view the report. PFA error screenshot and zip file of the integration

    Viewer_Component_Error.zip

  • Posted 19 September 2024, 5:05 am EST

    Hi Sagar,

    The error you’re encountering is due to CORS (Cross-Origin Resource Sharing) restrictions. When you’re trying to access local files using the

    file:///
    protocol, browsers block such requests for security reasons unless you serve the files using a web server with the appropriate CORS headers.

    You may use a local web server like VS Code Live Server Extension to fix this issue. After serving your file using a local server, you should be able to load and fetch it without CORS issues.

    Output.zip

Need extra support?

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

Learn More

Forum Channels