├── README.md ├── ajaxdemo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── cn │ │ │ └── xiaowenjie │ │ │ ├── AjaxdemoApplication.java │ │ │ ├── CrosFilter.java │ │ │ ├── JsonpAdvice.java │ │ │ ├── TestController.java │ │ │ ├── XSSController.java │ │ │ └── beans │ │ │ ├── Param.java │ │ │ └── ResultBean.java │ └── resources │ │ ├── application.properties │ │ └── static │ │ ├── index.html │ │ ├── jasmine-2.8.0 │ │ ├── boot.js │ │ ├── console.js │ │ ├── jasmine-html.js │ │ ├── jasmine.css │ │ ├── jasmine.js │ │ └── jasmine_favicon.png │ │ ├── jquery-1.11.3.min.js │ │ ├── nginx.html │ │ └── test.html │ └── test │ └── java │ └── cn │ └── xiaowenjie │ └── AjaxdemoApplicationTests.java ├── pictures ├── all.png ├── cookie1.png ├── crossorigin-0.png ├── crossorigin-1.png ├── crossorigin-2.png ├── crossorigin-3.png ├── get1-2.png ├── get1.png ├── get1result.png ├── get2.png ├── header1.png ├── header2.png ├── header3.png ├── header4.png ├── hosts.png ├── jsonp1.png ├── jsonp2.png ├── jsonp3.png ├── jsonp4.png ├── jsonp5.png ├── nginx.png ├── post1-2.png ├── post1.png ├── post2-1.png ├── post2-2.png └── post3.png ├── 跨域访问原因以及解决思路.xmind └── 配置 ├── 被调用方解决-支持跨域 ├── apache │ └── httpd-vhosts.conf └── nginx │ └── b.com.conf └── 调用方解决-隐藏跨域 ├── apache └── httpd-vhosts.conf └── nginx └── a.com.conf /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/README.md -------------------------------------------------------------------------------- /ajaxdemo/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/.gitignore -------------------------------------------------------------------------------- /ajaxdemo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /ajaxdemo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /ajaxdemo/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/mvnw -------------------------------------------------------------------------------- /ajaxdemo/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/mvnw.cmd -------------------------------------------------------------------------------- /ajaxdemo/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/pom.xml -------------------------------------------------------------------------------- /ajaxdemo/src/main/java/cn/xiaowenjie/AjaxdemoApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/java/cn/xiaowenjie/AjaxdemoApplication.java -------------------------------------------------------------------------------- /ajaxdemo/src/main/java/cn/xiaowenjie/CrosFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/java/cn/xiaowenjie/CrosFilter.java -------------------------------------------------------------------------------- /ajaxdemo/src/main/java/cn/xiaowenjie/JsonpAdvice.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/java/cn/xiaowenjie/JsonpAdvice.java -------------------------------------------------------------------------------- /ajaxdemo/src/main/java/cn/xiaowenjie/TestController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/java/cn/xiaowenjie/TestController.java -------------------------------------------------------------------------------- /ajaxdemo/src/main/java/cn/xiaowenjie/XSSController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/java/cn/xiaowenjie/XSSController.java -------------------------------------------------------------------------------- /ajaxdemo/src/main/java/cn/xiaowenjie/beans/Param.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/java/cn/xiaowenjie/beans/Param.java -------------------------------------------------------------------------------- /ajaxdemo/src/main/java/cn/xiaowenjie/beans/ResultBean.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/java/cn/xiaowenjie/beans/ResultBean.java -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/index.html -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/jasmine-2.8.0/boot.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/jasmine-2.8.0/boot.js -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/jasmine-2.8.0/console.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/jasmine-2.8.0/console.js -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine-html.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine-html.js -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine.css -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine.js -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/jasmine-2.8.0/jasmine_favicon.png -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/jquery-1.11.3.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/jquery-1.11.3.min.js -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/nginx.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/nginx.html -------------------------------------------------------------------------------- /ajaxdemo/src/main/resources/static/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/main/resources/static/test.html -------------------------------------------------------------------------------- /ajaxdemo/src/test/java/cn/xiaowenjie/AjaxdemoApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/ajaxdemo/src/test/java/cn/xiaowenjie/AjaxdemoApplicationTests.java -------------------------------------------------------------------------------- /pictures/all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/all.png -------------------------------------------------------------------------------- /pictures/cookie1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/cookie1.png -------------------------------------------------------------------------------- /pictures/crossorigin-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/crossorigin-0.png -------------------------------------------------------------------------------- /pictures/crossorigin-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/crossorigin-1.png -------------------------------------------------------------------------------- /pictures/crossorigin-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/crossorigin-2.png -------------------------------------------------------------------------------- /pictures/crossorigin-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/crossorigin-3.png -------------------------------------------------------------------------------- /pictures/get1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/get1-2.png -------------------------------------------------------------------------------- /pictures/get1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/get1.png -------------------------------------------------------------------------------- /pictures/get1result.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/get1result.png -------------------------------------------------------------------------------- /pictures/get2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/get2.png -------------------------------------------------------------------------------- /pictures/header1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/header1.png -------------------------------------------------------------------------------- /pictures/header2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/header2.png -------------------------------------------------------------------------------- /pictures/header3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/header3.png -------------------------------------------------------------------------------- /pictures/header4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/header4.png -------------------------------------------------------------------------------- /pictures/hosts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/hosts.png -------------------------------------------------------------------------------- /pictures/jsonp1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/jsonp1.png -------------------------------------------------------------------------------- /pictures/jsonp2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/jsonp2.png -------------------------------------------------------------------------------- /pictures/jsonp3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/jsonp3.png -------------------------------------------------------------------------------- /pictures/jsonp4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/jsonp4.png -------------------------------------------------------------------------------- /pictures/jsonp5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/jsonp5.png -------------------------------------------------------------------------------- /pictures/nginx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/nginx.png -------------------------------------------------------------------------------- /pictures/post1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/post1-2.png -------------------------------------------------------------------------------- /pictures/post1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/post1.png -------------------------------------------------------------------------------- /pictures/post2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/post2-1.png -------------------------------------------------------------------------------- /pictures/post2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/post2-2.png -------------------------------------------------------------------------------- /pictures/post3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/pictures/post3.png -------------------------------------------------------------------------------- /跨域访问原因以及解决思路.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/跨域访问原因以及解决思路.xmind -------------------------------------------------------------------------------- /配置/被调用方解决-支持跨域/apache/httpd-vhosts.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/配置/被调用方解决-支持跨域/apache/httpd-vhosts.conf -------------------------------------------------------------------------------- /配置/被调用方解决-支持跨域/nginx/b.com.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/配置/被调用方解决-支持跨域/nginx/b.com.conf -------------------------------------------------------------------------------- /配置/调用方解决-隐藏跨域/apache/httpd-vhosts.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/配置/调用方解决-隐藏跨域/apache/httpd-vhosts.conf -------------------------------------------------------------------------------- /配置/调用方解决-隐藏跨域/nginx/a.com.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwjie/AjaxDemo/HEAD/配置/调用方解决-隐藏跨域/nginx/a.com.conf --------------------------------------------------------------------------------