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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -