Trying to automate scanning for flash embed links on other domains
I tried this code to pull website but when I test it, the alert box doesn't run.
<script type="text/javascript" >
$(document).ready(function()
$.get( "https://crossorigin.me/https://google.com", function( data )
alert( "Data Loaded: " + data );
);
);
</script>
javascript jquery html ajax cors
add a comment |
I tried this code to pull website but when I test it, the alert box doesn't run.
<script type="text/javascript" >
$(document).ready(function()
$.get( "https://crossorigin.me/https://google.com", function( data )
alert( "Data Loaded: " + data );
);
);
</script>
javascript jquery html ajax cors
1
Could you expand on "doesn't work"?
– jonrsharpe
Nov 14 '18 at 20:05
When I run the script the alert box simply doesn't run. Also, I can't access the console because I am using a school computer under a G Suite that blocks developer tools.
– Ender
Nov 14 '18 at 20:11
Do you have jquery loaded?
– David Polák
Nov 14 '18 at 20:12
Yes, I have it loaded.
– Ender
Nov 14 '18 at 20:21
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 14 '18 at 20:24
add a comment |
I tried this code to pull website but when I test it, the alert box doesn't run.
<script type="text/javascript" >
$(document).ready(function()
$.get( "https://crossorigin.me/https://google.com", function( data )
alert( "Data Loaded: " + data );
);
);
</script>
javascript jquery html ajax cors
I tried this code to pull website but when I test it, the alert box doesn't run.
<script type="text/javascript" >
$(document).ready(function()
$.get( "https://crossorigin.me/https://google.com", function( data )
alert( "Data Loaded: " + data );
);
);
</script>
javascript jquery html ajax cors
javascript jquery html ajax cors
edited Nov 14 '18 at 20:13
Ender
asked Nov 14 '18 at 20:03
EnderEnder
44
44
1
Could you expand on "doesn't work"?
– jonrsharpe
Nov 14 '18 at 20:05
When I run the script the alert box simply doesn't run. Also, I can't access the console because I am using a school computer under a G Suite that blocks developer tools.
– Ender
Nov 14 '18 at 20:11
Do you have jquery loaded?
– David Polák
Nov 14 '18 at 20:12
Yes, I have it loaded.
– Ender
Nov 14 '18 at 20:21
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 14 '18 at 20:24
add a comment |
1
Could you expand on "doesn't work"?
– jonrsharpe
Nov 14 '18 at 20:05
When I run the script the alert box simply doesn't run. Also, I can't access the console because I am using a school computer under a G Suite that blocks developer tools.
– Ender
Nov 14 '18 at 20:11
Do you have jquery loaded?
– David Polák
Nov 14 '18 at 20:12
Yes, I have it loaded.
– Ender
Nov 14 '18 at 20:21
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 14 '18 at 20:24
1
1
Could you expand on "doesn't work"?
– jonrsharpe
Nov 14 '18 at 20:05
Could you expand on "doesn't work"?
– jonrsharpe
Nov 14 '18 at 20:05
When I run the script the alert box simply doesn't run. Also, I can't access the console because I am using a school computer under a G Suite that blocks developer tools.
– Ender
Nov 14 '18 at 20:11
When I run the script the alert box simply doesn't run. Also, I can't access the console because I am using a school computer under a G Suite that blocks developer tools.
– Ender
Nov 14 '18 at 20:11
Do you have jquery loaded?
– David Polák
Nov 14 '18 at 20:12
Do you have jquery loaded?
– David Polák
Nov 14 '18 at 20:12
Yes, I have it loaded.
– Ender
Nov 14 '18 at 20:21
Yes, I have it loaded.
– Ender
Nov 14 '18 at 20:21
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 14 '18 at 20:24
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 14 '18 at 20:24
add a comment |
1 Answer
1
active
oldest
votes
Taken from the documentation, try implementing the .fail
method to see what went wrong.
var jqxhr = $.get( "example.php", function()
alert( "success" );
)
.done(function()
alert( "second success" );
)
.fail(function()
alert( "error" );
)
.always(function()
alert( "finished" );
);
// Perform other work here ...
// Set another completion function for the request above
jqxhr.always(function()
alert( "second finished" );
);
Also the author of crossorigin.com warns that
PLEASE DO NOT USE THE PROXY ON A PRODUCTION SITE.
I cannot guarantee the stability of the service, and you will probably experience service interruptions.
It says error and then fineshed
– Ender
Nov 15 '18 at 17:55
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 15 '18 at 18:16
I cannot use dev tools, my computer is on a G-Suite that blocks them
– Ender
Nov 15 '18 at 18:18
Here is a link to the website 10.132.102.22:8887
– Ender
Nov 15 '18 at 21:17
That is a private subnet, I can't access that. And what do you mean about the g-suite blocking dev tools. Fire up chrome/firefox and press f12.
– David Polák
Nov 15 '18 at 23:06
|
show 4 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53307955%2ftrying-to-automate-scanning-for-flash-embed-links-on-other-domains%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Taken from the documentation, try implementing the .fail
method to see what went wrong.
var jqxhr = $.get( "example.php", function()
alert( "success" );
)
.done(function()
alert( "second success" );
)
.fail(function()
alert( "error" );
)
.always(function()
alert( "finished" );
);
// Perform other work here ...
// Set another completion function for the request above
jqxhr.always(function()
alert( "second finished" );
);
Also the author of crossorigin.com warns that
PLEASE DO NOT USE THE PROXY ON A PRODUCTION SITE.
I cannot guarantee the stability of the service, and you will probably experience service interruptions.
It says error and then fineshed
– Ender
Nov 15 '18 at 17:55
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 15 '18 at 18:16
I cannot use dev tools, my computer is on a G-Suite that blocks them
– Ender
Nov 15 '18 at 18:18
Here is a link to the website 10.132.102.22:8887
– Ender
Nov 15 '18 at 21:17
That is a private subnet, I can't access that. And what do you mean about the g-suite blocking dev tools. Fire up chrome/firefox and press f12.
– David Polák
Nov 15 '18 at 23:06
|
show 4 more comments
Taken from the documentation, try implementing the .fail
method to see what went wrong.
var jqxhr = $.get( "example.php", function()
alert( "success" );
)
.done(function()
alert( "second success" );
)
.fail(function()
alert( "error" );
)
.always(function()
alert( "finished" );
);
// Perform other work here ...
// Set another completion function for the request above
jqxhr.always(function()
alert( "second finished" );
);
Also the author of crossorigin.com warns that
PLEASE DO NOT USE THE PROXY ON A PRODUCTION SITE.
I cannot guarantee the stability of the service, and you will probably experience service interruptions.
It says error and then fineshed
– Ender
Nov 15 '18 at 17:55
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 15 '18 at 18:16
I cannot use dev tools, my computer is on a G-Suite that blocks them
– Ender
Nov 15 '18 at 18:18
Here is a link to the website 10.132.102.22:8887
– Ender
Nov 15 '18 at 21:17
That is a private subnet, I can't access that. And what do you mean about the g-suite blocking dev tools. Fire up chrome/firefox and press f12.
– David Polák
Nov 15 '18 at 23:06
|
show 4 more comments
Taken from the documentation, try implementing the .fail
method to see what went wrong.
var jqxhr = $.get( "example.php", function()
alert( "success" );
)
.done(function()
alert( "second success" );
)
.fail(function()
alert( "error" );
)
.always(function()
alert( "finished" );
);
// Perform other work here ...
// Set another completion function for the request above
jqxhr.always(function()
alert( "second finished" );
);
Also the author of crossorigin.com warns that
PLEASE DO NOT USE THE PROXY ON A PRODUCTION SITE.
I cannot guarantee the stability of the service, and you will probably experience service interruptions.
Taken from the documentation, try implementing the .fail
method to see what went wrong.
var jqxhr = $.get( "example.php", function()
alert( "success" );
)
.done(function()
alert( "second success" );
)
.fail(function()
alert( "error" );
)
.always(function()
alert( "finished" );
);
// Perform other work here ...
// Set another completion function for the request above
jqxhr.always(function()
alert( "second finished" );
);
Also the author of crossorigin.com warns that
PLEASE DO NOT USE THE PROXY ON A PRODUCTION SITE.
I cannot guarantee the stability of the service, and you will probably experience service interruptions.
edited Nov 14 '18 at 20:19
answered Nov 14 '18 at 20:13
David PolákDavid Polák
71731230
71731230
It says error and then fineshed
– Ender
Nov 15 '18 at 17:55
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 15 '18 at 18:16
I cannot use dev tools, my computer is on a G-Suite that blocks them
– Ender
Nov 15 '18 at 18:18
Here is a link to the website 10.132.102.22:8887
– Ender
Nov 15 '18 at 21:17
That is a private subnet, I can't access that. And what do you mean about the g-suite blocking dev tools. Fire up chrome/firefox and press f12.
– David Polák
Nov 15 '18 at 23:06
|
show 4 more comments
It says error and then fineshed
– Ender
Nov 15 '18 at 17:55
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 15 '18 at 18:16
I cannot use dev tools, my computer is on a G-Suite that blocks them
– Ender
Nov 15 '18 at 18:18
Here is a link to the website 10.132.102.22:8887
– Ender
Nov 15 '18 at 21:17
That is a private subnet, I can't access that. And what do you mean about the g-suite blocking dev tools. Fire up chrome/firefox and press f12.
– David Polák
Nov 15 '18 at 23:06
It says error and then fineshed
– Ender
Nov 15 '18 at 17:55
It says error and then fineshed
– Ender
Nov 15 '18 at 17:55
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 15 '18 at 18:16
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 15 '18 at 18:16
I cannot use dev tools, my computer is on a G-Suite that blocks them
– Ender
Nov 15 '18 at 18:18
I cannot use dev tools, my computer is on a G-Suite that blocks them
– Ender
Nov 15 '18 at 18:18
Here is a link to the website 10.132.102.22:8887
– Ender
Nov 15 '18 at 21:17
Here is a link to the website 10.132.102.22:8887
– Ender
Nov 15 '18 at 21:17
That is a private subnet, I can't access that. And what do you mean about the g-suite blocking dev tools. Fire up chrome/firefox and press f12.
– David Polák
Nov 15 '18 at 23:06
That is a private subnet, I can't access that. And what do you mean about the g-suite blocking dev tools. Fire up chrome/firefox and press f12.
– David Polák
Nov 15 '18 at 23:06
|
show 4 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53307955%2ftrying-to-automate-scanning-for-flash-embed-links-on-other-domains%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Could you expand on "doesn't work"?
– jonrsharpe
Nov 14 '18 at 20:05
When I run the script the alert box simply doesn't run. Also, I can't access the console because I am using a school computer under a G Suite that blocks developer tools.
– Ender
Nov 14 '18 at 20:11
Do you have jquery loaded?
– David Polák
Nov 14 '18 at 20:12
Yes, I have it loaded.
– Ender
Nov 14 '18 at 20:21
Please provide the full body of the GET request including the headers, you can find it for example chrome devtools. The crossorigin.com requires Origin header to be present
– David Polák
Nov 14 '18 at 20:24