mgerar
March 25, 2023, 7:59am
1
Hi everyone, recently on my website I started to receive while testing the MetaMask connection this error message on the MM popup
Deceptive site request.
The site you’re attempting to sign into doesn’t match the domain in the request. Proceed with caution.
I thought it was because I was using a testing environment on localhost, but also when I deployed the new site version, the message is show in the same way, even if the domain is correctly matching.
When we authorize the user we are simply providing these information:
const DOMAIN = …
const STATEMENT = ‘Please sign this message to confirm your identity on …’;
const URI =…
const EXPIRATION_TIME = …
const TIMEOUT = …
with the correct info on domain and URI
Any suggestion on how we could fix this?
Thank you
1 Like
Hello @mgerar !
Welcome to MetaMask community )
Are there any error logs in the console? Probably there is SIWE domain error.
2 Likes
Got a similar issue,
On MetaMask 10.25, everything works fine
As of MetaMask 10.26.2, this phishing warning appears
Perhaps there is a SIWE domain error and 10.26 just introduced some stricter policies. But the code did not change, just updating the users MetaMask
mgerar
March 29, 2023, 3:26pm
4
Thank you both for the answers, I solved simply adding in the authentication DOMAIN field server side the “www.” to the domain.
I confirm that with the same settings with the 10.25 the warning was not appearing. Now it works properly even with the new version.
2 Likes
system
Closed
April 28, 2023, 3:27pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.