Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: CORS Issue while consuming Hana's OData

$
0
0

Hi Denis,

 

I am unable to resolve the CORS Issue in SP08. I have added the code similar to your's in .xsaccess file as specified below;

 

{

    "exposed" : true,

     "authentication" :null,

    "force_ssl" : true,

    "prevent_xsrf" : false,

    "anonymous_connection" : "<Package Name.Sub Package.Sub Package >::AnonConn",

    "cors" :

        {

            "enabled" : true,

            "allowMethods":["GET"],

            "allowOrigin":["10.XXX.X.XXX"],

            "allowCredential":true,

            "exposeHeaders": "access-control-allow-headers,access-control-allow-origin,access-control-expose-headers,authorization",

            "allowHeaders":"Origin, Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control",

            "maxAge":"3600"

        }

}

 

And I have also create anonuser.xssqlcc file as

 

{

"description" : "Anon SQL connection"

}

 

Please guide me on what is that I am missing here.

 

Regards,

Amit Singh


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>