Recently I have delivered a 4-day training session on Silverlight 4 and many participants asked for a sample ClientAccessPolicy.xml file. So this is for those who want it 🙂

[sourcecode language=’xml’]



 
         
       
     

     
       
     

   
 

[/sourcecode]

Just change the “*” to “*.xyz.com” to restrict permissions to request originating from xyz.com

[sourcecode language=’xml’]

[/sourcecode]

Happy creating of WCF services for Silverlight & Flash..