API Controller in a different domain location

Stimulsoft Reports.WEB discussion
swaraj
Posts: 7
Joined: Wed Feb 17, 2021 7:12 am

Re: API Controller in a different domain location

Post by swaraj »

Yes. the URL is https://my-domain/reportservice/designer. controller Route is given as [Route("designer")] in designer controller
swaraj
Posts: 7
Joined: Wed Feb 17, 2021 7:12 am

Re: API Controller in a different domain location

Post by swaraj »

Yes. <stimulsoft-designer-angular [requestUrl]="'https://my-domain/reportservice/designer'"..
In Designer controller Route is given as [Route("designer")]
swaraj
Posts: 7
Joined: Wed Feb 17, 2021 7:12 am

Re: API Controller in a different domain location

Post by swaraj »

yes
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: API Controller in a different domain location

Post by Vadim »

Hello.

Please add to designer (designerLoaded) event:
let viewerId = this.designer.designerEl.nativeElement.firstChild.jsObject.options.viewerId;
window["js" + viewerId + "Parameters"].options.requestAbsoluteUrl = ...

will it help you ?
hassanbardan
Posts: 5
Joined: Wed Aug 17, 2022 2:16 pm

Re: API Controller in a different domain location

Post by hassanbardan »

I have the same problem. Is there another solution?

Thanks
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: API Controller in a different domain location

Post by Lech Kulikowski »

Hello,

Unfortunately, no.
Post Reply