File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 simple-http-server [FLAGS] [OPTIONS] [--] [root]
1212
1313FLAGS:
14- --cors Enable CORS via the "Access-Control-Allow-Origin" header
15- --coop Add "Cross-Origin-Opener-Policy" HTTP header and set it to "same-origin"
1614 --coep Add "Cross-Origin-Embedder-Policy" HTTP header and set it to "require-corp"
15+ --coop Add "Cross-Origin-Opener-Policy" HTTP header and set it to "same-origin"
16+ --cors Enable CORS via the "Access-Control-Allow-Origin" header
1717 -h, --help Prints help information
1818 -i, --index Enable automatic render index page [index.html, index.htm]
1919 --nocache Disable http cache
Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ fn main() {
104104 . help ( "Enable CORS via the \" Access-Control-Allow-Origin\" header" ) )
105105 . arg ( clap:: Arg :: with_name ( "coop" )
106106 . long ( "coop" )
107- . help ( "Enable \" Cross-Origin-Opener-Policy\" : same-origin" ) )
107+ . help ( "Add \" Cross-Origin-Opener-Policy\" HTTP header and set it to \" same-origin\" " ) )
108108 . arg ( clap:: Arg :: with_name ( "coep" )
109109 . long ( "coep" )
110- . help ( "Enable \" Cross-Origin-Embedder-Policy\" : require-corp" ) )
110+ . help ( "Add \" Cross-Origin-Embedder-Policy\" HTTP header and set it to \" require-corp\" " ) )
111111 . arg ( clap:: Arg :: with_name ( "certpass" ) .
112112 long ( "certpass" )
113113 . takes_value ( true )
You can’t perform that action at this time.
0 commit comments