At time of debugging it's getting issues

1.Access to XMLHttpRequest at ‘http://localhost:8083/create_session’ from origin ‘http://localhost:8082’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header has a value localhost:8081 that is not equal to the supplied origin.

2.Error: Realm failed to connect to the embedded debug server inside the app. If attempting to use Chrome debugging from a device, ensure the device is reachable on the same network as this machine.

Hi Mohammed,

Welcome to the community! This looks like a regular CORS policy error. What is happening here is you’re trying to connect from one URL to a different one, and this is not allowed by default. If you look closely, you’re using port 8082 and 8083, so these are treated as two different domains and XMLHttpRequest fail because of that.

So you need either put everything under the same domain (running in the same port if everything is the same app and not a mistake in port numbers) or apply one of these fixes: 3 Ways to Fix the CORS Error — and How the Access-Control-Allow-Origin Header Works | by David Katz | Medium

This is not a Realm error, is just how the Web works to avoid Cross Site Scripting attacks.

Hope this helps!

1 Like

thanks @Diego_Freniche will check this out

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.