| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>Triggering message logging in case of failing CORS check</title> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| </script> |
| <style> |
| /* Cross-origin request is not OK because the "Access-Control-Allow-Origin: *" is not returned for the redirection */ |
| #notok-shape-outside-disallow-redirection-allow-url { |
| float: left; |
| width: 200px; |
| height: 20px; |
| -webkit-shape-outside: url("http://localhost:8080/resources/redirect.php?url=http%3A%2F%2Flocalhost%3A8080%2Fsecurity%2Fresources%2Fimage-access-control.php%3Ffile%3D..%2F..%2Fresources%2Fsquare100.png%26allow%3Dtrue"); |
| } |
| |
| </style> |
| </head> |
| <body> |
| <p>Verify the error message in console in case of CORS failing checks.</p> |
| <div id="notok-shape-outside-disallow-redirection-allow-url"></div> |
| </body> |
| </html> |