AntiSSRFPolicy.allowPlainTextHttp Property

Changing an AntiSSRFPolicy instance to allow plaintext HTTP means you will be able to send HTTP requests without the recommended TLS encryption.

Definition

Determines whether HTTPS is required or HTTP is allowed.

allowPlainTextHttp: boolean { get; set; }

With ALL configuration options, HTTP is disallowed unless allowPlainTextHttp is explicitly set to true.

Property Value

boolean

  • true if HTTP should be allowed.
  • false if HTTPS should be required.

Errors

AntiSSRFError The value passed cannot be null or undefined.


Copyright © 2026 Microsoft Corporation. Distributed under the MIT license.