 Chromium Code Reviews
 Chromium Code Reviews Issue 210403002:
  Revert of Update image data upon changing the img.crossorigin attribute.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master
    
  
    Issue 210403002:
  Revert of Update image data upon changing the img.crossorigin attribute.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master| OLD | NEW | 
|---|---|
| 1 <?php | 1 <?php | 
| 2 header('HTTP/1.1 302 Found'); | 2 | 
| 3 header('Location: ' . ($_SERVER['HTTP_ORIGIN'] ? 'square100.png' : 'square200.pn g')); | 3 $gotOrigin = 0; | 
| 4 ?> | 4 foreach (getallheaders() as $name => $value) { | 
| 5 if ($name == "Origin") { | |
| 6 $gotOrigin = 1; | |
| 7 } | |
| 8 } | |
| 9 | |
| 10 if ($gotOrigin) { | |
| 11 header('Location: square100.png'); | |
| 12 } | |
| 13 else { | |
| 14 header('Location: square200.png'); | |
| 15 } | |
| 16 header('HTTP/1.1 302 Redirect'); | |
| OLD | NEW |