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

Default headers example AUTH_TOKEN comment #3539

Commits on Dec 12, 2020

  1. Updating the 'Global axios defaults' README to use a safer example

    The existing example usage it isn't safe in the general case as it can
    lead to auth tokens being leaked to 3rd party endpoints by unexpectedly.
    
    This change instead gives an example using
    "axios.defaults.headers.common" to set the User-Agent, which is an
    equally helpful use-case to document.
    
    The 'Custom instance defaults' example just below the 'Global axios
    defaults' example shows a method to set the 'Authorization' header
    specific to a given API. I've also updated the variable in the 'Custom
    instance defaults' code to use a semantically more relevant name within
    that example.
    aliclark committed Dec 12, 2020
    Copy the full SHA
    3933e16 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. Copy the full SHA
    d65ec47 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1869636 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    0fbebae View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    1f1b0bc View commit details
    Browse the repository at this point in the history
  5. Merge branch 'default-headers-example-without-confidential-text' of g…

    …ithub.com:aliclark/axios into default-headers-example-without-confidential-text
    aliclark committed Jan 11, 2021
    Copy the full SHA
    2ddee41 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2021

  1. Copy the full SHA
    453f4d3 View commit details
    Browse the repository at this point in the history