Getting "Cross-Origin Request Blocked" for StorageService.updateDocumentByDocId API call

0 votes
Hi,

We are consuming StorageService to manage (add/update/delete) json documents in our STEMergy database. GET/POST calls on StorageService are working fine without any issues, however update calls that use "PUT" method are being blocked by CORS. Error in the that we see in the developer tools debugger is below:

https://api.shephertz.com/cloud/1.0/storage/updateByDocId/dbName/<ourdbname//collectionName/AmazonKits/docId/<docid here>

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.shephertz.com/cloud/1.0/storage/updateByDocId/dbName/<dbname>/collectionName/AmazonKits/docId/<docid>?version=1.0. (Reason: Did not find method in CORS header ‘Access-Control-Allow-Methods’).
 

This app is browser based app deployed in a apache web server and javascript SDK is being used to communicate with server.

Appreciate any help here.

 

Thanks,

Gyanam
asked Jan 6, 2018 in JavaScript by connectcreativeminds (10 points)
recategorized Jan 6, 2018 by connectcreativeminds

1 Answer

0 votes
Hi Gyanam,

We have forwarded this query to our development team and will update you asap for the same.

Thanks.
answered Jan 8, 2018 by rajeev.etc (1,660 points)
CORS PROBLEM
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...