Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

JSLint showing Undeclared 'context'. (undeclared_a) for js file in resources

Former Community Member
Not applicable

I am using JSLint to check the quality of my javascript files.

For js code starting like this:

var clientAuthHeader = context.proxyRequest.headers['X-AR-Authorization']; context.targetRequest.headers.Authorization = "Bearer " + clientAuthHeader;

I am seeing Undeclared 'context'. (undeclared_a).

Is there a way to allow this in JSLint to do static code analysis of my code or if i declare context will it effect how APIGEE runs the js code?

@Siddharth Barahalikar

0 3 959
3 REPLIES 3