CORS related problem [closed]

2

In recent days I had a problem with the contact form on my site, the error in question is CORS. Well, so far so good, is a problem that surely many of you must have passed. The problem in question is that until sometime ago it was working perfectly, and I did not make any changes on both the client side (JAVASCRIPT) and the server side. Suddenly he went and started giving this following error:

  

Failed to load SERVER SIDE: Redirect from 'SERVER SIDE' to 'SERVER SIDE' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'CLIENT SIDE' is therefore not allowed access. '

And the worst of it is that I've already set up the PHP header in a number of ways and nothing, it looks like it is currently:

header("Access-Control-Allow-Headers","*");
header('Access-Control-Allow-Credentials', true);
header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');

Does anyone here have an idea of what can be and how can I resolve this situation?

Note: I also tried to .htacess and also did not solve anything.

    
asked by anonymous 12.10.2017 / 19:05

1 answer

0

ÐvÐ was right was missing the "WWW". The reason I can not say for sure because it was working well before without the WWW, it may be something related to the server itself. But that's the problem solved.

    
28.11.2017 / 14:16