javascript - Unable to load base64 image in ionic 2 from external source -


i trying load base64 image in ionic 2 external server. have tried configuring csp below:

  <meta http-equiv="content-security-policy" content="     default-src *; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval';     img-src 'self' data: blob: ;     " /> 

however, error still remains as:

because violates following content security policy directive: "img-src 'self' data: blob: ". 

the image tag @ <img [src]="base64image" class="editor-img" no-padding/>, base64image being variable in page itself.

help?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -