[Answered ]-How to verify HttpResponseRedirect is to an external site?

2👍

Not sure if it’s the best option, but you can compare request.get_host() with response['Location'] (or response.url in django dev version).

Hope that helps.

👤alecxe

Leave a comment