| OLD | NEW |
| 1 <?php | 1 <?php |
| 2 header("Access-Control-Allow-Origin: http://127.0.0.1:8000"); | 2 header("Access-Control-Allow-Origin: http://127.0.0.1:8000"); |
| 3 header("Access-Control-Allow-Credentials: true"); | 3 header("Access-Control-Allow-Credentials: true"); |
| 4 | 4 |
| 5 $name = 'green-background.css'; | 5 $name = 'green-background-import-credentials.css'; |
| 6 $fp = fopen($name, 'rb'); | 6 $fp = fopen($name, 'rb'); |
| 7 header("Content-Type: text/css"); | 7 header("Content-Type: text/css"); |
| 8 header("Content-Length: " . filesize($name)); | 8 header("Content-Length: " . filesize($name)); |
| 9 | 9 |
| 10 fpassthru($fp); | 10 fpassthru($fp); |
| 11 exit; | 11 exit; |
| 12 ?> | 12 ?> |
| OLD | NEW |