cashboard.js

Chris Tennant's Avatar

Chris Tennant

05 Feb, 2015 08:53 PM

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

  1. Support Staff 1 Posted by Seth B on 05 Feb, 2015 09:12 PM

    Seth B's Avatar

    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. 2 Posted by Chris on 05 Feb, 2015 09:27 PM

    Chris's Avatar

    I got an almost same msg when I tried it from my local machine.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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