Showing results for 
Search instead for 
Did you mean: 
In recognition of the Presidents Day holiday, our Support office will be open with limited availability on Monday 02/18 from 10:00 am - 6:00 pm ET. Check out our Help Center for all the ways to get in touch with us and get help.

localhost redirection not working

Occasional Visitor

localhost redirection not working

Hi ,

I am integrating constant contact api to my site . but auth redirection not working i first give http://localhost and dont get then i use and changed my virtualhost setting . not working returning  "'Invalid redirect.  and Please close the window to return to your application. '"


Please help me to solve this.   my url is here


If i close that window nothing happen not redirecting to  my site . 


can anyone provide me a simple code to integrate costant contact


Re: localhost redirection not working


Thank you for reaching out to Constant Contact API Support.


The redirect URI is used to authenticate the application with Constant Contact, so the value that you give us when making an authorization call needs to match what is stored for the application in your Mashery developer application. 

When you initially create an application, the redirect URI by default is set to http://localhost but if you wish to use you will need to edit your application in Mashery and update your redirect URI. Here is a link on where to go to do this:


Please let me know if you have any other questions!


David B.
Tier II API Support Engineer

Occasional Visitor

Re: localhost redirection not working

HI, I upadted as per your instruction but I am getting "Please close the window to return to your application."


Re: localhost redirection not working

Hi @user05212,


If you are redirecting to your IP address then the process will open a tab in your browser going to the location. If there is no website at that location then the page will just display the message. The URL for that tab that is opened should contain information needed for the next step such as your response code.


Please go through the steps again and look for the response code and then you should be able to move to the next step of the oAuth process.

Jimmy D.
Tier II API Support Engineer