angular-template-driven-forms-lab icon indicating copy to clipboard operation
angular-template-driven-forms-lab copied to clipboard

خطا در csp

Open program1382 opened this issue 6 years ago • 0 comments

سلام من با cps به یک مشکل برخوردم وقتی می خوام اینماد را بگذارم تو سایت به خطای زیر برمیخورم

Content Security Policy: The page’s settings blocked the loading of a resource at data:image/svg+xml,%3csvg xmlns='http://… (“default-src”). 2
Content Security Policy: The page’s settings blocked the loading of a resource at https://trustseal.enamad.ir/logo.aspx?id=.......... (“default-src”).

حالا برای رفعش امدم کد زیر را توسعه دادم

            string[] csp =
            {
              "default-src 'self' blob: https://trustseal.enamad.ir/",
              "style-src 'self' 'unsafe-inline'",
              "script-src 'self' 'unsafe-inline' 'unsafe-eval' ",
              "font-src 'self'",
              "img-src 'self' data: blob: https://trustseal.enamad.ir/",
              "connect-src 'self'",
              "media-src 'self'",
              "object-src 'self' blob: 'unsafe-eval'",
              $"report-uri {contentSecurityPolicyErrorLogUri}"
            };

باز مشکل رفع نشدممنون میشم راهنمایی بفرمایید باتشکر

program1382 avatar Nov 11 '19 13:11 program1382