Reputation: 1525
The case in hand is as follows:
Alternative solution i guess is for the api to return an object that the website can use to redirect.
Your kind suggestions and ideas
Upvotes: 0
Views: 1287
Reputation: 578
You should take a look at the HTTP/1.1 Status Code Definitions. Specifically section 10.3 "Redirection 3xx". It describes the available status codes, and you should be able to find a suitable one.
Example: 303 See Other
Your API would create a response with status code 303 and add a "Location" header that contains the address of the site you redirect to.
Upvotes: 1