# How to change "allow redirect" setting in the pre-request script

**URL:** <https://community.postman.com/t/how-to-change-allow-redirect-setting-in-the-pre-request-script/23671>\
**Category:** Help Hub\
**Created:** [May 12, 2021, 11:12am UTC](https://community.postman.com/t/how-to-change-allow-redirect-setting-in-the-pre-request-script/23671 "2021-05-12T11:12:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pajain30](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pajain30](https://community.postman.com/u/pajain30)\
**Post date:** [May 12, 2021, 11:12am UTC](https://community.postman.com/t/how-to-change-allow-redirect-setting-in-the-pre-request-script/23671/1 "2021-05-12T11:12:12Z")

</div>

I am doing chaining of request in pre-request script using pm.sendRequest and in that I am calling 4 requests and for one request i want to set “allow redirect” as true and for others I want to set it as “false”. Is there any way to do it?

I am aware of “settings” in the each request which we can use to set this value but not aware how I can do it in prerequest.

can anyone help me for this?
