# Replace Headers and Response

**URL:** <https://community.f5.com/t/replace-headers-and-response/25484>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, irules, security\
**Created:** [March 8, 2018, 8:40pm UTC](https://community.f5.com/t/replace-headers-and-response/25484 "2018-03-08T20:40:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JayRob\_328285](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JayRob\_328285](https://community.f5.com/u/JayRob_328285)\
**Post date:** [March 8, 2018, 8:40pm UTC](https://community.f5.com/t/replace-headers-and-response/25484/1 "2018-03-08T20:40:08Z")

</div>

I have been trying to follow the guide for fixing incomplete SP initiated SAML requests. [Fixing Incomplete SAML SP Initiated Login](https://devcentral.f5.com/questions/fixing-incomplete-saml-sp-initiated-login-50951), but I am attempting with Google Gsuite which is behaving differently. I am able to extract the relaystate, but not sure if I can inject it in or replace the header or can I create my own Get request method and insert the relaystate and custom rerferer header?

When I look in Fiddler I am seeing that the Referer is still set to IDP.
