fix getHeaders for CDE

fix static paths, npe in packager and baseUrl, return string instead of
using response