2013-10-31 19 views
0

我的清單具有下列權限行: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錯誤,並且我的應用程序被拒絕提出請求。

回答

2

使用通配符我還沒有嘗試過,但它應該工作的文件說,在這裏卸下後星號:Referencing External Resources

也與協議通配符不會是猶太教的URL,嘗試像這個:

"permissions": ["https://api.vineapp.com/", "storage", "webRequest", 
"http://platform.vine.co/", "background","http://davine.co/", "https://davine.co/", 
"notifications"] 

然後添加除http或https以外的其他值。

+1

注意,「引用外部資源」似乎與規範[匹配模式]不一致(http://developer.chrome.com/apps/match_patterns.html) - 我懷疑這是一個最近的變化, Google尚未糾正其不一致的文檔。 (1) – apsillers

0

你試過用這種模式使用通配符嗎?

"permissions": ["https://api.vineapp.com*", "storage", "webRequest", 
     "http://platform.vine.co*", "background","*://davine.co*", "notifications"]