The js enable command enables the function to insert the JavaScript script during web redirection.
The undo js enable command disables the function to insert the JavaScript script during web redirection.
By default, the function to insert the JavaScript script during HTTPS packet redirection is not enabled.
This command is supported only on the NetEngine 8000 F1A.
Usage Scenario
If the HTTPS noise reduction function is enabled, upon receipt of an HTTPS Get packet, the BRAS replies with a 200 OK packet indicating the insertion of the JavaScript script. Upon receipt of the 200 OK packet, the browser executes the JavaScript script and sends the BRAS a HTTPS Get packet carrying a special URL. One second later, the browser redirects to the specified portal server. A non-browser does not execute the JavaScript script upon receipt of the 200 OK packet.
Precautions
<HUAWEI> system-view [~HUAWEI] aaa [~HUAWEI-aaa] domain abc [*HUAWEI-aaa-domain-abc] commit [~HUAWEI-aaa-domain-abc] web-server mode post [*HUAWEI-aaa-domain-abc] quit [*HUAWEI-aaa] quit [*HUAWEI] access https-redirect [*HUAWEI-access-https-redirect] js enable