Object with Rigidbody slips off corners of static platforms

Hi! I have a problem in my game where for some reason the player slips off platforms when standing on a corner. The player object has a Rigidbody2D in Dynamic and a Box Collider component. I know that probably making the platform’s colliders bigger is a solution, but if a better one exists I would like to know it since I am just starting to learn to use this engine.

Does your player rotates around an axis when slipping off ? If so, try to freeze rigidbody’s rotation. See this page : Unity - Scripting API: Rigidbody.freezeRotation
You can use checkbox in inspector directly if you wish :
186748-capture-decran-2021-09-27-115151.png
Regards