Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:33
    Omnivoreye edited #4098
  • 15:32
    Omnivoreye edited #4098
  • 15:32
    Omnivoreye labeled #4098
  • 15:32
    Omnivoreye opened #4098
  • 13:13
    jasonsaayman commented #4041
  • 13:03
    zacharytyhacz commented #4041
  • 13:00
    zacharytyhacz commented #4007
  • 12:59
    zacharytyhacz labeled #4097
  • 12:59
    zacharytyhacz opened #4097
  • 12:58
    Pizzo15 opened #4096
  • 08:54
    Ravilochan edited #4095
  • 08:51
    github-actions[bot] closed #4095
  • 08:51
    github-actions[bot] commented #4095
  • 08:51
    Ravilochan labeled #4095
  • 08:51
    Ravilochan opened #4095
  • 07:19
    jasonsaayman closed #4090
  • 07:19
    jasonsaayman commented #4090
  • Sep 27 22:28
    touhidurrr closed #3990
  • Sep 27 22:25
    touhidurrr synchronize #3990
  • Sep 27 11:21
    github-actions[bot] closed #4094
CodeZealot
@CodeZealot1024
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
11
1
1
1
1
1
1
1
1
1
1
1
1
1
JunkMeal
@JunkMeal

Hello i need help with the Axios browser version.

I am requesting an url that redirects but i dont wanna follow it i just want the url that it wants to redirect

        const response = await axios.get(url, {
            maxRedirects: 0,
            validateStatus: function (status) {
                return true;
            },
        })
i have this code but it still redirects
jjfwas123
@jjfwas123
maxRedirects只能在node中生效,浏览器是无法控制重定向的
@JunkMeal
JunkMeal
@JunkMeal
So is there any way to request an url and stop the redirect and just look at the location header?
jjfwas123
@jjfwas123
没有办法,这个是后端控制的