Skip to content

Commit

Permalink
Update the body param qualification
Browse files Browse the repository at this point in the history
I think we cannot use h-captcha-response alone because otherwise there
will be no indicator that indicates it's a Cloudflare website.

And cf_captcha_kind is no longer available, let's use cf_ch_verify
instead.
  • Loading branch information
ppopth committed Feb 19, 2022
1 parent b9bf3ac commit db45cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/providers/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ISSUANCE_BODY_PARAM_NAME = 'blinded-tokens';
const COMMITMENT_URL =
'https://raw.githubusercontent.com/privacypass/ec-commitments/master/commitments-p256.json';

const QUALIFIED_BODY_PARAMS = ['h-captcha-response', 'cf_captcha_kind'];
const QUALIFIED_BODY_PARAMS = ['h-captcha-response', 'cf_ch_verify'];

const CHL_BYPASS_SUPPORT = 'cf-chl-bypass';
const DEFAULT_ISSUING_HOSTNAME = 'captcha.website';
Expand Down

0 comments on commit db45cab

Please sign in to comment.