Which code sample should the Developer use to make sure that HTTPS is used?

A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.

Which code sample should the Developer use to make sure that HTTPS is used?
A . exports.PaymentForm = guard.ensure([‘http’, ‘post’, ‘loggedIn’], handlePaymentForm);
B. exports.PaymentForm = guard.expose([‘post’, ‘loggedIn’], handlePaymentForm);
C. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
D. exports.PaymentForm = guard.ensure([‘https’, ‘post’, ‘loggedIn’], handlePaymentForm);

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments