I'm having problems with the Journal and 401 not authorized errors.
It works fine if the Journal is the only module on a page, but as soon as we add our own modules on to the same page, then it doesn't work
Our module is doing a simple AJAX call to our own DnnApiController.
I've tried to ensure my javascript variables are unique and our modules are not using sf as the ServicesFramework declaration, but it doesn't seem to work.
I've noticed that when it's the only module on the page, the ajax request headers contain the ModuleId and TabId, but if it's on a page with multiple modules, it doesn't send the moduleId and tabId, hence I get 401 errors.
Any one got any tips or workarounds?
I've also noticed that if you use the same sf javascript variable on all of your modules and have more than one on the same page, then I get issues with editing my page. I have therefore, made mine all unique.
var controllerPath = uniqueSF.getServiceRoot('WebAPI');
var request = $.ajax({
type: "GET",
url: controllerPath + url,
beforeSend: uniqueSF.setModuleHeaders,
data: params
});