Repository navigation
Commit f5df09a
authored
Added upload (and debug) to whitelisted URLs (#4858)
<!--
Thanks for contributing to Hypha!
Please ensure your contributions pass all necessary linting/testing and
that the appropriate documentation has been updated.
-->
<!--
Describe briefly what your pull request changes. If this is resolving an
issue, please specify below via "Fixes #<Github Issue ID>"
-->
Fixes #4857, adds the upload URL prefix to whitelisted URLs to allow for
uploading of files to complete a submission without needing to do 2FA.
(also added `/__debug__/` as the toolbars were failing to load)
## Test Steps
<!--
If step does not require manual testing, skip/remove this section.
Give a brief overview of the steps required for a user/dev to test this
contribution. Important things to include:
- Required user roles for where necessary (ie. "As a Staff Admin...")
- Clear & validatable expected results (ie. "Confirm the submit button
is now not clickable")
- Language that can be understood by non-technical testers if being
tested by users
-->
- [ ] With both `ENFORCE_TWO_FACTOR=True` and
`FORCE_LOGIN_FOR_APPLICATION=True`, ensure uploading a file as a user
without 2FA enabled works as expected.1 parent 92dfdcb commit f5df09a
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
| 51 | + | |
0 commit comments