2 Replies Latest reply: Apr 16, 2014 10:05 AM by Omer Demir RSS

    Origin is not allowed by Access-Control-Allow-Origin - Error

      Hi everyone ,


      I am using div based embedding as follows



                                          View: 'doc',


                                          Host: null



      <div class="QvInlineObject" avqview="doc" avq="object:.Document\CH06"></div>


      but I am getting this error in console , Please note my qlikview server is on network other than the network where my web page lies.


      OPTIONS http://[myqlikviewserver]/QVAJAXZfc/QvsViewClient.aspx?mark=&ticket=5&view=doc&slot=&platform=WORKBENCH&dpi=96&xrfkey=Cs4W6FVCjW7aMile Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.


      Any idea to resolve this issue?

        • Re: Origin is not allowed by Access-Control-Allow-Origin - Error

          I have got the same problem.

          I've tried to resolve it modifying the Web.config in "C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax" adding in section <system.webServer>

          these rows





                    <add name="Access-Control-Allow-Origin" value="*" />

                    <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />





          I have no error anymore, but my simple test page is still empty.



          I post the simple code for any suggestion:






          Test QlikView


          <link rel="stylesheet" type="text/css" href="tutorial.css" />

          <script language="javascript" type="text/javascript"



          <script language="javascript" type="text/javascript" >



                View: 'TestPartialReload',

                // Note: According to the documentation "Host: 'Local'" should be the default value,

                // but in my experience it seems to be more stable to use "Host: null" instead

                Host: null






                    <div  class="QvInlineObject"  avqview="TestPartialReload" avq="object:.Document\TB01">







          In tutorial.css




              width: 1024px;

              height: 768px;  








          Thanks in advance