Rogue One spoilers ahead. During the escape from Jedha
The main characters attempt to outrun the wave of destruction caused by the single reactor laser from the Death Star. They succeed by boarding their U-Wing and jumping to lightspeed from fairly close to the moon's surface. While technically a "moon", it's still fairly massive (listed as larger than Yavin IV, for example).
It's established canon that gravity wells of sufficient strength will prevent jumps to lightspeed (and pull ships out of hyperspace), and there are even ships designed to make use of this effect.
My question whether this an actual limitation of the technology, or if it's simply a safety feature (and if so, why can't those safeties be turned off for the aforementioned gravity well ships; what's the difference here)?
Note: There is a similar question, but it only addresses jumping into a gravity well (which based on canon simply pulls you out of hyperspace). This question is asking the opposite.
Note 2: The most similar canon example I can find was during the episode Jedi Crash (S1:E13) of The Clone Wars. Best I have found, they were in the upper atmosphere well above the planet's surface, and the issue wasn't mentioned. This means gravity was either low enough for it not to be physically impossible, or low enough that the safeties (assuming they exist) didn't care.