cashboard.js
I've tried running the demo js page (from github) on my hosting account and receive this message:
XMLHttpRequest cannot load https://api.cashboardapp.com/projects?show_active=true. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://witeshadow.com' is therefore not allowed access. The response had HTTP status code 405.
Thanks
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Seth B on 05 Feb, 2015 09:12 PM
Hey Chris,
The demo page (and library) assumes you’re running in a controlled environment (like your local machine, or a mobile app). It’s not intended to work on a page hosted on another domain.
I believe we did get CORS working, but it’s been awhile and I can’t recall the specifics. Just looking at our docs, I believe you need to add the “callback” or “variable” querystring param. For more info on CORS / JSONP, see here: http://json-p.org/ <http://json-p.org/>
If that’s your intended use you’ll probably to need to dig in and get your hands dirty.
2 Posted by Chris on 05 Feb, 2015 09:27 PM
I got an almost same msg when I tried it from my local machine.