Request headers not being forwarded to JSSP in ACC

When you are sending request headers and if they are returning empty, it means they are not being forwarded to JSSP. Set the header values as mentioned in this article and then try to access them on the same value page.

Description description

Environment

Campaign Classic

Issue/Symptoms

Request headers are not being forwarded to JSSP in Adobe Campaign Classic (ACC).

When you do request.getHeader('Authorization'), it always returns as empty. This is also true for any other header you send.

Resolution resolution

This is an expected behavior from Adobe Campaign Classic. Apache strips away non-standard headers on API calls coming into Campaign.

But there is a workaround as follows:

Set the header values like this:

--cookie 'cookie-name=value; cookie2-name=value, ....'

And access it on the page like this:

cookies[ "cookie-name"] .value

Ask Questions In Our Experience League Campaign Community
If you have any questions you’d like answered about this topic, or read previous answered-questions, we invite you to view our Experience League Community blog post that includes this article, send us your questions and comments, and join our Experience League Campaign Community!

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f