angularjs - cors request failing in sails.js while doing res.redirect() -
cors request failing
xmlhttprequest cannot load http://eampple.net/api/transactions?asset_id=76cb0099&payment_id=pay_6g28anqus6wkbk&plan_name=undefined. request redirected 'http://eampple.net/api/subscriptions/events?transaction_token=0364…8af7b4d98ee1f66d7ca0fbfd81b7e627781b6b81ba187e8e3d72ef49&asset_id=76cb0099', disallowed cross-origin requests require preflight.
in side cors.js
have set
allroutes:true
,origin:'*'
for request working. when redirect failing.
how doing redirecting in angular?
$window.location.href = href;
was way work sails.
Comments
Post a Comment