Youhavebeencontractedtocreateawebsiteforafreedatingservice.Onefeatureistheabilityforoneclienttosendamessagetoanotherclient,whichisdisplayedinthelatterclient’sprivatepage.Your contractexplicitlystatesthatsecurityisahighpriority.Therefore,youneedtopreventcr

题目

Youhavebeencontractedtocreateawebsiteforafreedatingservice.Onefeatureistheabilityforoneclienttosendamessagetoanotherclient,whichisdisplayedinthelatterclient’sprivatepage.Your contractexplicitlystatesthatsecurityisahighpriority.Therefore,youneedtopreventcross-sitehackinginwhichoneuserinsertsJavaScriptcodethatisthenrenderedandinvokedwhenanotheruserviewsthatcontent.WhichtwoJSTLcodesnippetswillpreventcrosssitehackinginthescenarioabove?()

A.<c:out>${message}</c:out>

B.<c:outvalue=’${message}’/>

C.<c:outvalue=’${message}’escapeXml=’true’/>

D.<c:outeliminateXml=’true’>${message}</c:out>

E.<c:outvalue=’${message}’eliminateXml=’true’/>


相似考题