Skip to main content
Question

Whitelisting localhost in CORS domains

  • May 22, 2025
  • 3 replies
  • 16 views

Forum|alt.badge.img

How do I white list my locally running app to redirect users to box singin page? it says redirect_uri_mismatch on the error page.

BOX_bxfr4ma7id01a4uvrpov1hiucs8roelq.png

My configurations for the application are as below. Important to note is that it works for my second domain (https://someapp.io)

BOX_l562vlz3209eg1lbllc3q523edvf158n.png

3 replies

Forum|alt.badge.img

This is not a CORS issue but a redirect issue. On the same page in the app configuration is a setting to configure your redirect URI.

 

BOX_e8ir2jmwnkr81wyolqey09a2k1aa4e0z.png


Forum|alt.badge.img

Thanks for replying back.
I have already setup a redirect uri here (which is for my real app - https://someapp.io) hence it's working fine.

I will rephrase my question. Actually I want it to work for both

What should my configuration look like. As you pointed out to to fill in redirect uri field. I have already done that. It contains https://someapp.io. This redirect uri field is required & doesn't accept multiple urls. 


Nauman.



Forum|alt.badge.img

 sure, I get what you mean, thank you for clarifying. We currently only support one redirect URI per app. We recommend setting up 2 apps, and use different credentials for the different environments. You can then set up a different redirect URI per environment.