Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. $results = file_get_contents('http://example.org:700/handle.php');
  3. echo $results;
  4. ?>
  5.  
  6. <?php
  7. header('Access-Control-Allow-Origin: http://example.org');
  8.  
  9. //Rest of code
  10. ?>
  11.  
  12. XMLHttpRequest cannot load http://example.org:700/music/soundfile.flac. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example.org' is therefore not allowed access.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement