Currently, the CTFd API will not follow redirects as this sometimes breaks setting cookies correctly.
However, when downloading challenge files redirects are often required.
Suggestion
Allow API to follow redirects.
Probably even follow all redirects by default.
Of course, this means cookie handling has to change as well.
Affected Components
CTFd API
Current State
Currently, the CTFd API will not follow redirects as this sometimes breaks setting cookies correctly. However, when downloading challenge files redirects are often required.
Suggestion
Allow API to follow redirects. Probably even follow all redirects by default. Of course, this means cookie handling has to change as well.