0

Let's say first page is microsoft.com and the second one is google.com

I can make first page send POST data by using console but I cannot reach that data it in google.com in any way I can think of. After I reach it, I will also need to use it.

Is it possible to do that with only JS?

I think I can do that with something like iMacros and chrome extension development but I want to do it in JS.

Any ideas?

1 Answers1

0

If you will use AJAX, you will probably get something like this:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<your-domain>' is therefore not allowed access.

The Javascript Origin Policy is going to prevent you from making Ajax request to another domain

If we are talking about API like box.com etc., try to use YQL or something similar.

Mike Grabowski
  • 1,955
  • 16
  • 17