For PS4 players, you go to your PS4 settings → account management → privacy settings → friends|connections → friend requests, then choose “Anyone”.
For Xbox One players, you go to your XBOX settings → all settings → privacy & online safety → XBOX Live privacy → choose the “Adult default” account type →, then choose View details & customize → You can join multiplayer games, then choose “Allow”.