meaning that
If you don't like a situation, you'll simply have to accept and endure it because it isn't going to change. The expression is often used bluntly or dismissively to tell someone to stop complaining and put up with something they cannot avoid.
What can’t be cured must be endured. - Like it or lump it.