CORS issue when requesting data from shopify app (remix template) during local theme development

Thank you for the suggestion.

const { admin } = await authenticate.public.checkout(request);

and

const { admin } = await authenticate.public.customerAccount(request);

both authenticate successfully, but I do not have access to the admin api, which I’m pretty sure I need to run graphql queries.

Just for clarification, I’m calling this route code from the Thank You page (might need to do so from Order Status as well).