On Mon, 02 Jan 2017 13:47:44 GMT, Inquie wrote:

But it only works if you allow cross site content... (had to use a plugin that disables it for the site I was working on(youtube)).

Try with only the path, i.e. url: "/add-chapter". Note, that it's not possible to make an AJAX request to another site than the site that contains the JavaScript. For that you need a backend server that forwards the request.

/Jacob Carlborg