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

how hide request headers on cassette? #352

Closed
bit4bit opened this issue Jun 8, 2021 · 2 comments
Closed

how hide request headers on cassette? #352

bit4bit opened this issue Jun 8, 2021 · 2 comments

Comments

@bit4bit
Copy link

bit4bit commented Jun 8, 2021

hi, cassette save request headers like this:

-
    request:
        method: GET
        url: 'http://172.19.0.7:8000/api/v1/management/customers'
        headers:
            Host: '172.19.0.7:8000'
            x-api-key: HOW HIDE OR REMOVE!!
            content-type: application/json
            accept: 'application/json, plain/text'
    response:
        status:
         ....

i like not save tokens or other values on cassette.

thanks any help

@allejo
Copy link

allejo commented Jun 9, 2021

There's #344 or a workaround of https://github.com/allejo/php-vcr-sanitizer

@bit4bit
Copy link
Author

bit4bit commented Jun 20, 2021

@allejo it's works, will be great as core feature

@bit4bit bit4bit closed this as completed Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants