Any website can read answers sent with the person's cookies
MCPS-CORS-001Why it mattersThe server repeats whatever Origin it gets and allows credentials. If sign-in uses cookies, any page a signed-in person opens can call the server as that person and read the answer.
How to fixAllow credentials only for a fixed list of origins, never for the Origin a request sends.
- Request
POST https://roamflat.com/wp-json/roamflat/mcp (initialize, Origin: https://probe.invalid)- Answer
403- What we saw
Access-Control-Allow-Origin: https://probe.invalid; Access-Control-Allow-Credentials: true
Seen in the server's answer