✓ Solved

CORS configuration

Apparently this is my problem, but I don't know how to solve it, I have read several documentation files and I have reviewed some forums, which in the end have confused me more than helped me.
this is my error in browser console.

Access to XMLHttpRequest at 'https://www.syscon32.cl/Usuarios/validar' from origin 'https://syscon32.cl' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Can you help me, please.

1 Reply

✓ Best Answer

The simplest solution would be to have both on the same domain instead of one being "www.syscon32.cl" and the other "syscon32.cl" -- that's why the blocking is happening. Although technically both domains might be being handled by the same web server, the web browser doesn't know that and has to assume that they are two separate web servers.

Alternatively, www.syscon32.cl will need to serve an Access-Control-Allow-Origin HTTP header that either has a wildcard (*) or specifically whitelists syscon32.cl

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct