Friday, February 3, 2017

CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable (Google Fonts Offline)

Error: CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable

Solution: Add mimemap to web.config file under <system.webServer> section


Script:
<staticcontent>
      <remove fileextension=".woff"/>
      <mimemap fileextension=".woff" mimetype="application/octet-stream"/>
</staticcontent>


Creating Self Signed Certificate with MAKECERT.EXE - ( HTTPS SHA256)

1. Find MakeCert.Exe in your machine, the path depends on the OS. If you have VisualStudio, open the Visual Studio Command Prompt and run the below scripts.

Script:
#1. Root Cert
makecert -r -n "CN=IPMRootCert" -pe -sv IPMRootCert.pvk -a sha1 -len 2048 -b 01/01/2014 -e 01/21/2050 -cy authority IPMRootCert.cer
pvk2pfx.exe -pvk IPMRootCert.pvk -spc IPMRootCert.cer -pfxIPMRootCert.pfx

#2. Project Cert
makecert.exe -iv IPMRootCert.pvk -ic IPMRootCert.cer -n "CN=cissipm.ed.gov" -pe -sv cissipm.ed.gov.pvk -a sha1 -len 2048 -b 01/21/2010 -e 01/21/2050 -sky exchange cissipm.ed.gov.cer -eku 1.3.6.1.5.5.7.3.1
pvk2pfx.exe -pvk cissipm.ed.gov.pvk -spc cissipm.ed.gov.cer -pfx cissipm.ed.gov.pfx


2. Script 1 above, creates the Root Certificate (three certs .pfx, .pvk, .cer). For Windows OS, import .pfx (To Personal) and .cer (To Trusted Root Folder) certificates using Cert Manager

3. Script 2 above, creates the project or application Certificate (three certs .pfx, .pvk, .cer). For Windows OS, import .pfx (To Personal) and .cer (To Trusted Root Folder) certificates using Cert Manager



Access to XMLHttpRequest at 'from origin has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. .net core angular

Issue: The angular application was getting error from API that the origin has been blocked by CORS policy. Solution: Make sure that the...