aboutsummaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/web/web.py
AgeCommit message (Collapse)Author
2023-05-31Raise a Waitress exception into the UI with a modal dialog and reset the ↵Miguel Jacq
share if it occurs
2023-05-30Stop Waitress immediately rather than waitingMiguel Jacq
2023-05-30Removed some deprecation warnings spotted in pytest output. Harden waitressMiguel Jacq
2023-05-29Switch to Waitress and Flask-Compress in lieu of werkzeug serverMiguel Jacq
2022-09-30Fix stubbed_show_server_banner function, so CLI tests passMicah Lee
2022-02-13Remove cleanup_tempfiles altogether because they are not being usedMicah Lee
2022-01-16Update copyright year to 2022Micah Lee
2021-12-21Solve obnoxious cx_Freeze issue that broke websockets by enforcing ↵Micah Lee
async_mode=gevent, and including the correct modules in the build
2021-12-21Enable websocket logs in verbose modeMicah Lee
2021-12-17Force the MIME type for .js files to be text/javascript, to override silly ↵Miguel Jacq
OS databases/registries with incorrect settings, which Flask would otherwise depend on
2021-12-01Merge branch 'develop' into 1470_tempfilesMicah Lee
2021-12-01Explicitly cleanup temp files and dirsMicah Lee
2021-11-08Support sending a custom Content-Security-Policy header in Website modeMiguel Jacq
2021-09-03Merge pull request #1416 from SaptakS/fix-chat-shutdownMicah Lee
Adds exception for ConnectionError in chat mode during shutdown
2021-09-02Adds exception for ConnectionError in chat mode during shutdownSaptak S
The way flask-socketio stops a connection when running using eventlet is by raising SystemExit to abort all the processes. Hence the connections are closed and no response is returned So I am just catching the ConnectionError to check if it was chat mode, in which case it's okay.
2021-08-30Merge develop and resolve conflictMiguel Jacq
2021-08-28Remove rate-limit related code, and a couple more places where ↵Miguel Jacq
flask-httpauth was referenced
2021-08-27ClientAuthV3 fixesMiguel Jacq
* Remove Client Auth as an explicit option (it's on by default). * Update wording about Public mode * Fix tuple error when raising TorTooOldStealth exception in CLI * Move Private Key button next to URL button in GUI * Replace visual references of ClientAuth to Private Key * Remove HTTPAuth Flask dependency and remove a lot of code to do with password generation, 401 auth triggers/invalid password rate limit detection etc * Test updates * Remove obsolete locale keys
2021-08-20Remove endpoint altogether because it's not neededMicah Lee
2021-08-19Fix issue #1365Twann
2021-05-31fix another typo...whew
2021-05-31resolve conflict in web.pywhew
2021-05-13Update web.pywhew
2021-05-11Move the 'supports_file_requests' attribute into the actual modes rather ↵Miguel Jacq
than the Web class
2021-05-11Adds attribute self.mode_supports_file_requests in Web class. Don't send ↵Miguel Jacq
REQUEST_INDIVIDUAL_FILE_STARTED to the frontend if the mode doesn't support this, so that we don't trigger a chain reaction of toggling history widgets and the like. Set this attribute to True by default since most modes use it, but turn it off for Chat mode. Prevents an exception when sending a bad HTTP method or a 404 to a chat room
2021-05-10Fix HTTP return code for custom 500 internal server error handlerMiguel Jacq
2021-05-10Register the 405 error handler properly. Enforce the appropriate methods for ↵Miguel Jacq
each route (GET or POST only, with OPTIONS disabled). Add tests for invalid methods. Add a friendlier 500 internal server error handler
2021-05-04Move the cleanup() function from Onionshare class to Web class, so that the ↵Miguel Jacq
list of files to be cleaned up is always available (needed for website temp files)
2021-04-30GUI displays "Read Message" button when a receive mode submission includes a ↵Micah Lee
message
2021-04-29Fix flake8 issues found in cliMicah Lee
2021-04-29Update the Content-Security-Policy: remove style-src and script-src which ↵Miguel Jacq
are inherited by default-src. Add frame-ancestors, form-action and base-uri which do not inherit default-src
2021-04-19Force shutdowns the socket server on closing chat serverSaptak S
2021-03-10chore: refactor code quality issuesAksh Gupta
2021-02-22Update copyright year to 2021Micah Lee
2020-12-24docs: fix simple typo, progess -> progressTim Gates
There is a small typo in cli/onionshare_cli/web/web.py. Should read `progress` rather than `progess`.
2020-10-12Add onionshare CLI to cli folder, move GUI to desktop folder, and start ↵Micah Lee
refactoring it to work with briefcase