Matt Bettiol
Matt Bettiol

Reputation: 31

Chrome App Manifest Not Allowing My URL'S

My manifest has the following permissions line:

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

I've started uploading and publishing my app to the Chrome Web Store but it came back with the following error,

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.

But it is clearly stated in the Chrome App docs that any domains you plan on making ajax/xhr requests to should be stated in the permissions on the manifest. I tried removing them from my manifest and uploading again, which it went through, but I got tons of CORS errors and my app is disallowed from making requests.

Upvotes: 0

Views: 539

Answers (2)

Jeff Robert Dagala
Jeff Robert Dagala

Reputation: 633

have you tried using wildcard like this pattern?

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

Upvotes: 0

JavierLerones
JavierLerones

Reputation: 171

I haven't tried using wildcards, but it should work removing the trailing asterisk as the documentation says here: Referencing External Resources

Also the url with a wildcard in the protocol will not be kosher, try like this instead:

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

And add any other than http or https to the list.

Upvotes: 2

Related Questions