Forum Discussion
Mohanad_313515
Jan 20, 2019Nimbostratus
Strip HTTP Origin header based on its value before hit the ASM
Hi Everyone
Our app using CORS, and it's working normally with correct origin headers:
Origin: "://" [ ":" ]
But also all mobile clients sending Origin header with value 'file://' this c...
Kai_Wilke
Jan 20, 2019MVP
Hi Mohanad,
use the iRule below to remove every
Origin
header that starts_with
the string file://
.
when HTTP_REQUEST {
if { [HTTP::header value "Origin"] starts_with "file://" } then {
HTTP::header remove "Origin"
}
}
Cheers, Kai
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects