Skip to content

Commit

Permalink
crossdomain header and edit api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilampirai committed Nov 13, 2017
1 parent 44625e0 commit 6036d88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fabric/healchain/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ router.post('/users', function(request, response) {


router.post("/edit", function(req,rep) {
rep.setHeader("Access-Control-Allow-Origin", "*");

rep.setHeader("Access-Control-Allow-Headers", "X-Requested-With");
Fabric_Client.newDefaultKeyValueStore({ path: store_path
}).then((state_store) => {
// assign the store to the fabric client
Expand Down

0 comments on commit 6036d88

Please sign in to comment.