Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6082003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:14:25+00:00 2026-05-23T11:14:25+00:00

Trying to download a page in a popup code but it returns status of

  • 0

Trying to download a page in a popup code but it returns status of zero.

console.log("Req");
var req = new XMLHttpRequest();
req.open(
    "GET",
    "http://www.google.com",
    true);
req.onload = function() {
  console.log("DONE!!!");
  console.log(req.responseText);
}
req.send(null);

I did set this in my manifest:

"permissions": [
   "http://www.google.com"
]

Whats wrong? Why the response is zero?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:14:25+00:00Added an answer on May 23, 2026 at 11:14 am

    Google.com is not the best page for testing. I bet when you open it in a browser it redirects you to your localized google page (it redirects me to http://www.google.ca for example). So you would need to add that redirected url to the permissions as well.

    Another problem is that your permission domain does not end with /:

    "permissions": [
       "http://www.google.com/",  "http://www.google.ca/"
    ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to download an HTML page, and parse it using XMLHttpRequest(on the most
I am trying to use Wget to download a page, but I cannot get
Greetings, I'm trying to download a web page with the following code: public partial
I'm trying to download http://www.downway1.com/dota/eng/DotA%20Allstars%20v6.67.w3x this file. But it's not able to download. It's
I am trying to download this page using Wget. Here is the page link:
I'm using windbg (the latest available from the MSDN download page). I'm trying to
Im trying to download a page contain a table like this <table id=content-table> <tbody>
I am trying to create a force-download page to prevent browsers from opening files
I am trying to download JBoss Developer Studio 2.0 GA, but the best I
I'm trying to download a simple page from an SSL secured webpage. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.