No 'Access-Control-Allow-Origin' header is present on the requested resource.

2 posts, 0 answers
  1. Raul
    Raul avatar
    11 posts
    Member since:
    Aug 2017

    Posted 25 Jul 2018 Link to this post

    I have the next service in angular, 

    <tr-viewer 
        [containerStyle]="viewerContainerStyle"
        [serviceUrl]="'http://localhost:21294/api/reports'"
        [reportSource]="{
            report: 'Product Catalog.trdp',
            parameters: {}
        }"
        [viewMode]="'INTERACTIVE'"
        [scaleMode]="'SPECIFIC'"
        [scale]="1.0">
    </tr-viewer> 

    I have my app in .NET whit my report Product Catalog.trdp,

    and i have the next errors.

     

     

  2. Silviya
    Admin
    Silviya avatar
    414 posts

    Posted 26 Jul 2018 Link to this post

    Hello Raul,

    You've asked the same question at Error loading the report viewer's templates forum thread. However, I will post my answer here too:

    "Please note that enabling CORS configuration have to be utilized in the REST Service project, not in Angular application. For more information, please refer to Enable CORS and Enabling Cross-Origin Requests in ASP.NET Web API 2."

    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top