Fixing the issues of invalid requests after cert ip whitelisting