Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://*.*.*.*' is therefore not allowed access.
  2.  
  3. Access-Control-Allow-Origin: http://xyz.example.com
  4.  
  5. <?php
  6. $url = 'http://getmethedatafromyourapi';
  7.  
  8. header('Content-Type:text/json');
  9. echo file_get_contents($url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement