Skip to content

[Question] 为什么默认是禁用重定向的呢 #36

@coolight7

Description

@coolight7
  • 嗨哥们,我翻到代码里 [WdDio] 的构造函数中有这么一行:
    // 禁止重定向
    this.options.followRedirects = false;
  • 为什么要禁止重定向呢,是因为考虑到重定向可能会把请求头字段 [authorization] 给带过去不安全嘛?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions