Jeff Stevens
02/15/2023, 6:11 PMawait $.ajax(
{
type : "POST",
url : "./includes/ajaxColdfusion/formEditor/publishUnpublish.cfc?method=publish",
data : JSON.stringify(sendData),
dataType : "json",
cache : false
}
)
The javascript console keeps returning the following error:
jquery-3.6.1.min.js:2 POST http://localhost:9001/includes/ajaxColdfusion/formEditor/publishUnpublish.cfc?method=publish 400 (Bad Request)
I've attached screenshots of the error as well.
I understand the change that I've made from Lucee to Adobe ColdFusion 2018 must mean that there's something to do with the way cfcs are accessed remotely, as I can access this method and successfully get an output if I copy and paste the address into my browser.
I'm curious if anyone knows what mistake I might be making or if there's a resource for devs trying to take a Lucee app and make it work for Adobe ColdFusion.Rodney
02/15/2023, 6:49 PMMark Takata (Adobe)
02/15/2023, 6:54 PMJeff Stevens
02/15/2023, 6:57 PMJeff Stevens
02/15/2023, 6:58 PMJeff Stevens
02/15/2023, 7:01 PMMark Takata (Adobe)
02/15/2023, 7:10 PMJeff Stevens
02/15/2023, 7:15 PMJeff Stevens
02/15/2023, 7:15 PMJeff Stevens
02/15/2023, 7:16 PMRodney
02/15/2023, 7:54 PMremote struct function publish() returnFormat="JSON" The only other thing I can think of is an Application.cfc interfering with the request.Jeff Stevens
02/15/2023, 8:00 PMJeff Stevens
02/15/2023, 8:01 PMJeff Stevens
02/15/2023, 8:01 PMJeff Stevens
02/15/2023, 8:02 PMJeff Stevens
02/15/2023, 8:10 PM