Applying datamasking configuration in jsonp response attribute

The datamasking can be applied for attributes of json and xml response based on apigee documentation.

is there any workaround to datamasking the attribute of jsonp response in apigee edge?

1 1 63
1 REPLY 1

Oh, I don't think so. 

There is special handling for JSON and XML, but no special handling for jsonp.  I think JSONP , being JavaScript, should the content type of "application/javascript" and there is no special handling for that content type in the datamask configuration. If you are concerned about the payuload, then I guess you could mask the variables, response.content and message.content. 

The downside is, In Apigee X and hybrid, you need to do that at the environment scope.  In Apigee Edge, there is a per-proxy datamask, but that is not available in Apigee X/hybrid. 

Which means if you are using X/hyb, then ... the mask to obscure the JSONP response will obscure all other responses from all proxies.  womp womp.

I think the per-proxy datamask is a good idea and I hope we can bring it back.