cancel
Showing results for 
Search instead for 
Did you mean: 

Generalizing the Redirect URI for localhost

SOLVED
Highlighted
Occasional Contributor

Generalizing the Redirect URI for localhost

This may be a dumb question but there goes:

 

My redirect URI is http://localhost:"somenumber"/rest of the URL. My problem is "somenumber" changes based upon the computer used so my team members get errors.

 

What should I put in my webconfig and in the Constant Contact Application textbox in order to make it generic so that any localhost will work?

2 REPLIES
Moderator

Re: Generalizing the Redirect URI for localhost

Hello @DavidL7089,

 

The number listed after the localhost is the port number that the request is trying to connect to; port 8080 is the very common port for web traffic. Pretty much every computer should be able to use this port unless your network/computer has it blocked for some reason. If it is blocked then you would either need to unblock it or pick a different port to use on all computers.

 

The redirect URI can only be set to one thing per API Key. The only way to use different redirect URIs is to use multiple API Keys.


Regards,
Jimmy D.
Tier II API Support Engineer
Occasional Contributor

Re: Generalizing the Redirect URI for localhost

I see. Thank you.

 

BTW, on your https://constantcontact.mashery.com/ site, you have some extra html sticking out at the bottom that looks like //]]> 

Just letting you guys know.

Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!