I'm building a chrome extension that loads add-ons to a browser game. The html/javascript is like this
<script>
function loadMod() {
Game.LoadMod('link')
}
etc...
</script>
<button onclick = loadMod()>Load Mod</button>
A change to the content_security_policy is needed to do this, so I added this to the manifest.json file.
"content_security_policy": "script-src 'self' 'sha256-hashOfEverythingInScriptTags'; object-src 'self'",
(other settings)
When I attempt to load the chrome extension, I get an error that there is an invalid value for content_security_policy. I checked the documentation and it seems like it should work, I'm wondering what I'm doing wrong.