Tuesday, 15 May 2012

apigee - maintain cors headers on raise error -



apigee - maintain cors headers on raise error -

hello apigee back upwards team , fellow devs questions , answers,

thanks back upwards on this. more confirmation question. when raise error on apigee faultresponse/set seen here http://apigee.com/docs/ja/api-services/reference/raise-fault-policy override entire headers killing in process cors headers.

is there way maintain cors headers on raise error? or have manually add together them?

marco

create javascript policy store headers in different variable, set them in raiseerror policy.

the script like...

context.setvariable("myvariable", context.getvariable("request.header.{name}"));

then in raisefault utilize {myvariable} place value in header.

please provide examples of source code if need more accurate answer.

apigee

No comments:

Post a Comment