Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header("Access-Control-Allow-Origin: *");
- Header set Access-Control-Allow-Origin: *
- Header set Access-Control-Allow-Headers: Content-Type, Depth,
- User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-
- Name, Cache-Control
- Header set Access-Control-Allow-Credentials: true
- Header set Access-Control-Allow-Methods: OPTIONS, GET, POST
- var invocation = new XMLHttpRequest();
- var url = 'http://www.obstgut-auf-der-heide.de/';
- function callOtherDomain(){
- if(invocation) {
- invocation.open('GET', url, true);
- invocation.withCredentials = true;
- invocation.onreadystatechange = handler;
- invocation.send();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement