Skip to content

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

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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