Front-end basis - often test the contents of 4

A, CORS how to achieve

Second, what network security knowledge that you understand (say XSS and CSRF)

https://segmentfault.com/a/1190000002627927

 

 

 

 

 

 

1.XSS how to solve

2.CSRF how to solve

Three, JavaScript inheritance achieve

Four, jsonp principle

https://www.runoob.com/json/json-jsonp.html

1. What is jsonp

Jsonp (JSON with Padding) is a json "use mode" that allows it to obtain information from other web domain name (website), that cross-domain data is read.

Why do we need a special technique different domain (website) to access data from (JSONP) it? This is because the same-origin policy.

Same-origin policy, it is a well-known security policy proposed by Netscape, now all JavaScript-enabled browsers will use this strategy.

Six, JSON

https://www.runoob.com/json/json-tutorial.html

The JSON:  J AVA S cript  O bject  N otation (the JavaScript Object Notation)

JSON syntax for storing and exchanging text messages. Similar to XML.

JSON is smaller than XML, faster, and easier to resolve.

1. What is JSON

Refers JSON JavaScript Object Notation ( J AVA S cript  O bject  N otation)

Javascript use JSON syntax to describe data objects

Guess you like

Origin www.cnblogs.com/songsongblue/p/11615637.html