Inspired by the question How does the Death Star gravity work?, how does gravity work on the Millennium Falcon and other ships its size? The passengers are not strapped in and regularly move around just easily as they would on a planet with Earth's gravity.
The answer for the Death Star refers to gravity often being "coreward" (presumably taking advantage of the natural gravity an object of such substantial mass would have), but that doesn't apply for a small ship. So how is gravity accomplished?