Еще один кросс-XHR, связанный

Я знаю что тамс кучей вопросов о "не разрешено Access-Control-Allow-Origin. " ошибка.

Но я'Мы попробовали некоторые из них безуспешно. :(

Некоторые назначения: я

я пытаюсь создать расширение dev-tools-tabЯ могу коснуться Flickr API, какпример шоуЯ могу'T достичь местного

Уже пробовал несколько разрешений подстановочных знаков

http://localhost/
http://*/
*://*/

Уже попробовал упаковатьд и распаковатьD расширения

в настоящее время

"version": "0.0.1",
"manifest_version": 2,
"devtools_page": "components/devtools.html",
"permissions": [
    "http://*/"
]

devtools.html




    
    


    


и devtools.js

(function (window) {
"use strict";
var xhr1, xhr2, url;
xhr1 = new window.XMLHttpRequest();
xhr2 = new window.XMLHttpRequest();
xhr1.onreadystatechange = function () {
    if (this.readyState === 4) {
        console.log('flickr ok');
    }
};
xhr2.onreadystatechange = function () {
    console.log(this.readyState);
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
};
url = 'https://secure.flickr.com/services/rest/?' +
          'method=flickr.photos.search&' +
          'api_key=90485e931f687a9b9c2a66bf58a3861a&' +
          'text=' + encodeURIComponent('cats') + '&' +
          'safe_search=1&' +
          'content_type=1&' +
          'sort=interestingness-desc&' +
          'per_page=20';
xhr1.open('get', url, true);
xhr1.send();
url = 'http://apache.local';
xhr2.open('get', url, true);
xhr2.setRequestHeader('Origin', url);
xhr2.send();

Выход консоли Chrome:

1 devtools.js:12
Refused to set unsafe header "Origin" devtools.html:1
XMLHttpRequest cannot load http://apache.local/. Origin chrome-extension://nafbpegjhkifjgmlkjpaaglhdpjchlhk is not allowed by Access-Control-Allow-Origin. devtools.html:1
4 devtools.js:12
flickr ok devtools.js:8

Chrome версия: 28.0.1500.20 dev

Спасибо за любой совет.

Ответы на вопрос(1)

Ваш ответ на вопрос