Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 5115

Allowing CORS on OData with authentication in HANA SPS09

$
0
0

Hi,

 

I am trying to allow CORS on OData service with authentication created over HANA SPS09.

 

 

I tried the following options -

 

XSADMIN

 

Screen Shot 2015-06-05 at 8.10.22 pm.png

 

 

Contents of .XSACCESS


{

     "exposed" : true, 

                 

     "authentication" :                                           

            {

               "method": "Basic"  

            },

 

     "cache_control" : "must-revalidate",

 

 

     "cors" :                     

            {

             "enabled" : true,

             "allowMethods": ["GET"],

             "allowOrigin": ["*"]

            },

                    

     "enable_etags" : false,

 

 

     "force_ssl" : false,

    

     "prevent_xsrf" : true

}

 

Please let me know if any settings are redundant


I referred to the thread

CORS Issue while consuming Hana's OData

 


I am not able to access my OData service in other domains. Can you please suggest where I am making a mistake




Viewing all articles
Browse latest Browse all 5115

Trending Articles