我的清單具有下列權限行:Chrome應用清單不讓我的URL
"permissions": ["https://api.vineapp.com/*", "storage", "webRequest",
"http://platform.vine.co/*", "background","*://davine.co/*", "notifications"]
我已經開始上傳和發佈我的應用程序在Chrome網上應用店,但它與下面的錯誤回來,
An error occurred: Failed to process your item.
The field permissions.https://api.vineapp.com/* is not allowed in manifest.
The field permissions.http://platform.vine.co/* is not allowed in manifest.
The field permissions.*://davine.co/* is not allowed in manifest.
但它在你打算使AJAX/XHR請求的任何域的Chrome應用文件明確提出應在清單的權限予以說明。我嘗試從我的清單中刪除它們,並再次上傳,它經歷了,但是我收到了大量的CORS錯誤,並且我的應用程序被拒絕提出請求。
注意,「引用外部資源」似乎與規範[匹配模式]不一致(http://developer.chrome.com/apps/match_patterns.html) - 我懷疑這是一個最近的變化, Google尚未糾正其不一致的文檔。 (1) – apsillers