Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://*.*.*.*' is therefore not allowed access.
- Access-Control-Allow-Origin: http://xyz.example.com
- <?php
- $url = 'http://getmethedatafromyourapi';
- header('Content-Type:text/json');
- echo file_get_contents($url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement