why shopify rest api work with postman and dont work here i cant understand i tried 2 methods and both worked with postman.
1- https://(api key):(token)@(your store).myshopify.com/admin/api/2023-04/orders.json
for this method i got error “Error: TypeError: Failed to execute ‘fetch’ on ‘Window’: Request cannot be constructed from a URL that includes credentials”
2- https://(your store).myshopify.com/admin/api/2023-04/orders.json
Header : X-Shopify-Access-Token : (tohen)
for this method i got error cors
is ther solution to this and why. thanks in advance