Depending on the cooking time and cooking temperature, salmon will sometimes leak a white substance called albumin which is a protein in the salmon that becomes solid when heated. The hotter the salmon cooks, the more albumin will come out. The best thing you can do to try and prevent this is to bake at a more gentle temperature. Sometimes the albumin will still come through regardless, but it's perfectly safe to eat.