]> git.kaiwu.me - njs.git/commit
Added support for HTTPS URLs to the Fetch API.
authorAntoine Bonavita <antoine.bonavita@gmail.com>
Wed, 1 Sep 2021 18:43:56 +0000 (20:43 +0200)
committerAntoine Bonavita <antoine.bonavita@gmail.com>
Wed, 1 Sep 2021 18:43:56 +0000 (20:43 +0200)
commitc98ed0f1d2a84c36dccd4f4ddf0cea8906bd24e5
tree8d3bc6db7b8ff527d4e4dc15a78fdbd0f49ebf09
parent4d6053db05e4da9813ad9cbd749c455455b2f657
Added support for HTTPS URLs to the Fetch API.

The fetch API now accepts an extra parameters:
    - verify: boolean (default true) to control server certificate
    verification.

Verification process can be controlled with the following directives
from the http js and stream js modules:
    - js_fetch_ciphers
    - js_fetch_protocols
    - js_fetch_verify_depth
    - js_fetch_trusted_certificate

In collaboration with Dmitry Volyntsev.
nginx/ngx_http_js_module.c
nginx/ngx_js.h
nginx/ngx_js_fetch.c
nginx/ngx_stream_js_module.c