Isolation in Resistive Current Sensor
If the grounds in your schematic are connected then the circuit will work fine with two different supplies as long as the voltage level reaching the opamp inputs is within the input common-mode range.

If the grounds are not connected then you can use a Hall-Effect-Based Linear Current Sensor such as ACS712. The sensor output is electrically isolated from the circuit being measured so the two supplies can  be completely independent.