对于闯蝉的跨域操作
- 4. 对于 Javascript 的跨域操作 login.php a.com b.com Get : username, passowrd {error: date:} Javascript: if (ture) setCookie
- 6. <html> <body> <form method=get action="http://b.com/request.php"> username:<input name=username> password:<input name=password> <input type=submit value=submit> </form> </body> </html> 对于 Javascript 的跨域操作 a.com/request.html
- 7. <?php echo $_GET['username']; echo $_GET['password']; echo $_POST['username']; echo $_POST['password']; ?> 对于 Javascript 的跨域操作 b.com/request.php
- 9. <html><body> <iframe width=0 height=0 name='_hide'></iframe> <script> function foo() { ..... } </script> <form method=get action="http://b.com/request.php" target='_hide'> <pre> username:<input id=username name=username> password:<input id=password name=password> <input type=submit value=submit> </pre> </form></body></html> 对于 Javascript 的跨域操作 a.com/request.html
- 10. <script> Function foo() { setCookie(); } 对于 Javascript 的跨域操作 <?php if ($_GET[username] == ‘u’ && $_GET[password] == ‘p’) { echo “<script>parent.foo();</script>” } ?>
- 18. echo $_GET['callback']."({'error':'xxxx','data':'yyyy'})"; 对于 Javascript 的跨域操作
- 19. 对于 Javascript 的跨域操作 http://b.com/request.php?callback=jsonp1236928692745&_=1236928765485 &username=bbb&password=sss