Forum Discussion

Muesli's avatar
Muesli
Advocate I
8 years ago
Solved

is it possible to set Headers / "Access-Control-Allow-Origin" on a report server?

i am trying to get user context into my visual by calling the API

("myreportserver.com/reports/api/v2.0/me" returns the current user)

my problem is that chrome says:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

So is there a way to set Headers for a local report server?

 

regards

  • found the solution:

     

    - open sql mangement

    - connect to your report server (with "reporting services" and add "\reportserver" to your server adress)

    - right click the server

    - open properties

    - go to extra

    - make your changes

4 Replies

  • found the solution:

     

    - open sql mangement

    - connect to your report server (with "reporting services" and add "\reportserver" to your server adress)

    - right click the server

    - open properties

    - go to extra

    - make your changes

    • v-chuncz-msft's avatar
      v-chuncz-msft
      Community Support

      Muesli,

       

      Thank you for the sharing. You may help accept solution. Your contribution is highly appreciated.

    • sato89's avatar
      sato89
      Helper I

      Hi. Thank you for your contribution.

      Can you explain better where I have to do these configuration changes?

      • cyang4's avatar
        cyang4
        Helper I

        You can update the "AccessControlAllowOrigin" field on dbo.ConfigurationInfo object