Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Problem with CORS in V1.7.72

$
0
0

Hi,

 

After creating a 72 AWS Hana Developer instance and migrating my packages across, I now have a CORS issue.  What was working perfectly for many 100,000's of ajax calls in V1.7.70 now fails in 72 with

 

 

 

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.


 

 

.xsacces file

{

        "exposed":true,

        "cors" : { "enabled" : true },

        "authentication" : null,

        "anonymous_connection" : "hpl.missioncontrol.services::anonConn"    

}

 

 

 

Anonymous connection

{

  "description" : "Anon SQL connection"

}

 

 

 

Ajax call

$.ajax({ type: 'GET',

          url: missioncontrolModel.getConfigServicePilotsUri(),

          dataType: 'json',

          crossDomain: true,

          async: false,

          success: myHplApp.pilot.controller.onLoadPilots,

          error: myHplApp.pilot.controller.onErrorCall

  });

 

 


I tried adding the following to the ajax call, to no avail:

 

headers : {"Access-Control-Allow-Origin" : "*"},

 

 

Uri is to an odata service.  Via browser display of metadata with $metadata is fine, just the actual read of the entity content fails.  I have also tried via postman in Chrome with no success (500 Internal Server Error).

 

 

I would naturally tend to believe it was an issue with my migration, as yet I cannot see this is the case.

 

 

Any advice gratefully received.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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