Is it possible to use Figma REST API from Figma plugin?

Is it possible to use ‘GET’ endpoints in the Figma REST API from within a Figma plugin? I’m getting CORS errors, trying to get the link to an image for a node. Is there an easier way to do this? Thanks!


Keen to know more on this point.