I did some research on the same thread, and tried the answers that i got. But still the same error throws everytime.
In my case, its a chrome app and in one page im using an iframe and im pointing src into some xhtml content. That actually contain some inline style and scripts, which i cant remove or change.
Below is my manifest file.
{
"manifest_version": 2,
"name": "*****",
"short_name": "****",
"version": "*****",
"permissions": [""],
"content_security_policy": "default-src 'self' 'unsafe-inline' 'unsafe-eval'; script-src 'unsafe-inline' 'unsafe-eval' 'self'; object-src 'self' 'unsafe-inline' 'unsafe-eval'",
"app": {
"background": {
"scripts": ["chrome.js"]
}
},
"icons": {
"16": "1.png",
"48": "2.png",
"128": "3.png"
},
"sandbox": {
"pages": [
"sql-js-template.html"
]
}
}--
You received this message because you are subscribed to the Google Groups "Chromium-Apps-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-apps+unsubscribe@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
You cannot allow inline scripts. You must put them in external files.If you cannot do that, then Chrome applications might not be the platform for you.
☆PhistucK
Your manifest file shows a warning when I load it -"'content_security_policy' is only allowed for extensions and legacy packaged apps, but this is a packaged app."
☆PhistucK
I guess so. I am not sure what has changed, though (that might be a bug). Have you changed manifest.json rather than the code perhaps?
☆PhistucK
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.You can reply with a link to the found or created issue and might get triaged (and fixed) faster.Thank you.
☆PhistucK