1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

[PS-1152] CLI serve forbid browser requests (#3220)

* Inconsiquential change to allow a draft PR

* Serve blocks requests from browsers by default

Option is provided to override this behavior for backwards
compatibility.

* Revert "Inconsiquential change to allow a draft PR"

This reverts commit 0f51344c35.
This commit is contained in:
Matt Gibson
2022-08-05 09:27:11 -06:00
committed by GitHub
parent 7526b46bfd
commit e7220644d1
2 changed files with 22 additions and 1 deletions

View File

@@ -476,6 +476,10 @@ export class Program extends BaseProgram {
.description("Start a RESTful API webserver.")
.option("--hostname <hostname>", "The hostname to bind your API webserver to.")
.option("--port <port>", "The port to run your API webserver on.")
.option(
"--disable-origin-protection",
"If set, allows requests with origin header. Not recommended!"
)
.on("--help", () => {
writeLn("\n Notes:");
writeLn("");