kenyee / angularjs-cart

AngularJS Shopping Cart modified to support Stripe.js (includes Google Wallet and Paypal already) support
Apache License 2.0
279 stars 207 forks source link

Error: Origin null is not allowed by Access-Control-Allow-Origin. #1

Closed michaeltse closed 10 years ago

michaeltse commented 11 years ago

I run default.htm and able to saw the banner only, but then the console shows "Origin null is not allowed by Access-Control-Allow-Origin. " Any advice please?

kenyee commented 11 years ago

This is a quirk w/ how Chrome handles local files that do AJAX requests. You can put the files on a web server or use firefox as a workaround. Or if you want to keep using Chrome, add a command line parameter: http://stackoverflow.com/questions/5224017/origin-null-is-not-allowed-by-access-control-allow-origin-in-chrome-why