Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. header("Access-Control-Allow-Origin: *");
  2.  
  3. Header set Access-Control-Allow-Origin: *
  4. Header set Access-Control-Allow-Headers: Content-Type, Depth,
  5. User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-
  6. Name, Cache-Control
  7. Header set Access-Control-Allow-Credentials: true
  8. Header set Access-Control-Allow-Methods: OPTIONS, GET, POST
  9.  
  10. var invocation = new XMLHttpRequest();
  11. var url = 'http://www.obstgut-auf-der-heide.de/';
  12.  
  13. function callOtherDomain(){
  14. if(invocation) {
  15. invocation.open('GET', url, true);
  16. invocation.withCredentials = true;
  17. invocation.onreadystatechange = handler;
  18. invocation.send();
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement