problem loading url image into report

Stimulsoft Reports.JS discussion
Post Reply
Ezrodriguez
Posts: 24
Joined: Fri Mar 06, 2020 2:43 am

problem loading url image into report

Post by Ezrodriguez »

2025:10:29, 08:51: Http: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://sgadb.probusacademy.com//compan ... 44de9f.jpg'.

It block cors , but i have permited to load the url where im doing the request , but it not load the image in the report.

you can enter to the url image.
Lech Kulikowski
Posts: 7510
Joined: Tue Mar 20, 2018 5:34 am

Re: problem loading url image into report

Post by Lech Kulikowski »

Hello,

What product and version are you using?

Thank you.
franc.siswanto
Posts: 10
Joined: Sun Mar 02, 2025 8:13 am

Re: problem loading url image into report

Post by franc.siswanto »

Hi,

I also had this problem, example attached.
Here's what I did:
- Create new blank report
- Insert new Image Component
- Choose "Image URL" as source
- Type example url => https://www.stimulsoft.com/templates/st ... o.svg?2.33
- The Preview tab doesn't show anything, and in the Console tab of the browser shows this:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.stimulsoft.com/templates/st ... o.svg?2.33. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
- I guess @Ezrodriguez had the same problem as me

Since I want to access public images resources, I think I'll need other ways. Any suggestions?

Thanks
Attachments
ErrorOnImageUrl.mrt
(3.39 KiB) Downloaded 6 times
Lech Kulikowski
Posts: 7510
Joined: Tue Mar 20, 2018 5:34 am

Re: problem loading url image into report

Post by Lech Kulikowski »

Hello,

Please check the following article:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Thank you.
Post Reply