Do Test Classes Run When Installing a Managed Package?

|
| By Mohit Mahajan

The straightforward answer is no. When you install a managed package from the AppExchange or via a link into your Salesforce org, the Apex test classes included in that package do not run by default. This often surprises people because

Allow the Cross Origin Request (CORS)

| By Webner

Cross Origin issue is resolved by adding header(“Access-Control-Allow-Origin: http://yoursite.com”); to allow the particular origin or we can also allow all the origin by replacing the path to *. For Cake php header is defined in file public/index.php. Code: header(“Access-Control-Allow-Origin: http://yoursite.com”);