| OLD | NEW |
| 1 <?php | 1 <?php |
| 2 header("Access-Control-Allow-Origin: http://127.0.0.1:8000"); | 2 if (strtolower($_GET["cors"]) != "false") { |
| 3 header("Access-Control-Allow-Origin: http://127.0.0.1:8000"); |
| 4 } |
| 3 header("Content-Type: application/javascript"); | 5 header("Content-Type: application/javascript"); |
| 4 if (strtolower($_GET["fail"]) == "true") | 6 if (strtolower($_GET["fail"]) == "true") |
| 5 echo "throw({toString: function(){ return 'SomeError' }});"; | 7 echo "throw({toString: function(){ return 'SomeError' }});"; |
| 6 else | 8 else |
| 7 echo "alert('script ran.');"; | 9 echo "alert('script ran.');"; |
| 8 ?> | 10 ?> |
| OLD | NEW |