補足編:機密情報を含むJSONには X-Content-Type-Options: nosniff をつけるべき


JSON X-Content-Type-Options: nosniff  - 




 X-Content-Type-Options: nosniff 

JSONX-Content-Type-Options:nosniff

<script>IEXSSX-Content-Type-Options:nosniff

IEIE

Internet ExplorerIEX-Content-Type-OptionsContent-TypeIE(Heads up: nosniff header support coming to Chrome and Firefox · GitHub:)X-Content-Type-Options:nosniffIE

XMLHttpRequest X-Request-With ?

PHPAjaxXSS(3)JSON - ockeghem() XMLHttpRequest JSON xhr.setRequestHeader( "X-Request-With", "XMLHttpRequest" ); JSONXMLHttpRequest<script>JSONXMLHttpRequestXMLHttpRequestAjax

CSRF?

JSONCSRF<script>CSRFGETPOSTJSONPOST<script>JSON