Cannot redirect to auth URL to reauthorize new scopes

I have an embedded app and I’ve added new scopes to my app, so I need to redirect the user to auth grant URL to confirm those.

I do this by comparing the scopes and if they don’t match I do res.redirect(“/api/auth”);
But on the frontend I get a CORS error.

I’ve tried using cors package in the backend, but no results.

Also, seen that for embedded apps we need to use App Bridge Redirect. Which didn’t do anything for me. So what else can I do ?

Hello @seymur_crsp

Hope you are doing great!

I added these features to the Shopify Rails app. Please check out this link. Maybe this one help you out. by the way which technology are you using?