I've been wrangling with this issue for a day or two so far and I'm not sure I have all the pieces I need to make it work. I'm marginally competent with jquery and OAUTH and all the other parts that go into making AJAX REST calls.
What I need to do is send one small request to SFDC, either a REST APEX class I've built, or the standard REST API to do a PATCH to set a checkbox to false in SFDC based from an external site.
I've looked at the forcetk.js package but can't make any sense of what it's actually doing based on the example.html page. I started by creating series of cUrl commands following the SFDC docs to sort out the OAUTH and my requests. At which point I had a working set of commands that allowed me to get a token and make my request to change this checkbox value correctly. All looked good!
However, now that I've moved onto the next step I'm having all sorts of trouble making a jquery post or ajax request work.
If my cUrl works shouldn't jquery.ajax/post w/the same data also work?
As of now the best I can do is get a CORS error with my $.post() request.