mercredi 8 juillet 2020

use a particular ip type (either ipv4 or ipv6) for making requests from client

In my webapp, I am providing a url from server by encrypting its slug with client's IP address. when user requests for data(that url) (using axios in react) it uses ipv4 address so i encrypt it with ipv4 address. then client use the (encrypted slug)url in iframe src, there it makes request with ipv6 address, so when i decrypt the slug of url then it does not match clients ip address. so the client is unable to connect to iframe src because its url's slug is encrypted with different ip type.

Is there a way to make requests from a particular ip type from client (either ipv4 or ipv6 if available) so that it matches everytime.




Aucun commentaire:

Enregistrer un commentaire