* fix: 🐛 Update validateOrigin to throw error on bad request
If the result from netRequestPromise is successful but a not a 200
response, validateOrigin will throw an error
✅ Closes: ICU-4238
* Update ui/desktop/electron-app/src/models/runtime-settings.js
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* refactor: 💡 Add comment as to why we don't throw error for 3xxs
* Update ui/desktop/electron-app/src/models/runtime-settings.js
Co-authored-by: Randall Morey <randall@randallmorey.com>
* Update ui/desktop/electron-app/src/models/runtime-settings.js
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
Co-authored-by: Randall Morey <randall@randallmorey.com>