Showing posts with label WSP. Show all posts
Showing posts with label WSP. Show all posts

Thursday, January 11, 2018

Extract WSP (SharePoint Solution) file from SharePoint Farm using PowerShell

clear
Remove-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
Add-PSSnapin Microsoft.SharePoint.Powershell

$solName = "Sample.wsp"
$farm = Get-SPFarm

$file = $farm.Solutions.Item($solName).SolutionFile
$file.SaveAs("c:\Sample.wsp")

write-host "Completed"

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...