Error 405 (CORS) in SPServices usage

Mar 16 at 5:34 PM
Hey ,

Not able to execute the method getversions in spservices .
I think it of as CORS related issue. = true;
                            webURL: fullWebUrl,  ( issue is here)
                            dataType: 'jsonp',
                            operation: "GetVersions",
                            strlistID: "Test",
                            strlistItemID: 1,    
                            strFieldName: "Notes",                                                               
                            completefunc: function (xData, Status) {                             

                              $(xData.responseText).find("Version").each(function(i) {
                                    console.log("Name: " + $(this).attr("Notes") + " Modified: " + $(this).attr("Modified"));
Mar 16 at 6:55 PM
It's hard to say what the issue is. It depends on what version of SharePoint you're using and how its set up. You can't declare cors from the client unless the server allows it. You also don't need it as long as the call is within the current domain.

SPServices will not pass these options:
dataType: 'jsonp',
Mar 16 at 6:57 PM
Thanks for replying

I using it in office 365 online. And calling host web domain list using app domain.
Mar 16 at 6:58 PM
I doubt that will work. If you're writing an app, you should really be using REST.

Mar 16 at 7:18 PM
Do you have any working example to solve this . I want to get versions basically be it rest or whatever. but in online.
Mar 22 at 5:08 PM
You should be able to find plenty of examples out there.