Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change cloudflare issue request flow #292

Merged

Commits on Feb 2, 2022

  1. Use only body params to identify issue request

    Since there is no more query param, we will use only the body param to
    identify when the user want to issue tokens.
    ppopth committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    cb79846 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2022

  1. Add extraHeaders into extraInfos for Chrome

    Chrome needs the extraHeaders flag in extraInfos to read the Referer
    header.
    ppopth committed Feb 3, 2022
    Configuration menu
    Copy the full SHA
    01ad66d View commit details
    Browse the repository at this point in the history
  2. Change the issue request flow for Cloudflare

    Previously we used axios to send an issuance request in
    handleBeforeRequest, but now we will send the request in
    handleBeforeSendHeaders because we need to read the Referer header
    first.
    
    After reading the Referer header, we extract the __cf_chl_tk query param
    in the Referer url and add the __cf_chl_f_tk query param with that token
    in the issuance request URL.
    
    We need a new "issueInfo" property to remember the request body we can
    read in handleBeforeRequest and then it will be read in
    handleBeforeSendHeaders so that in handleBeforeSendHeaders we will have
    both the body and the Referer header.
    ppopth committed Feb 3, 2022
    Configuration menu
    Copy the full SHA
    7c7b066 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    98f8a8d View commit details
    Browse the repository at this point in the history
  4. Bump the version to 3.0.1

    ppopth committed Feb 3, 2022
    Configuration menu
    Copy the full SHA
    ac60db3 View commit details
    Browse the repository at this point in the history