I’m having problem with CORS. My Node.js Server with apollo-server-express(version 3.7)
My problem is api server sometimes return cors error.
My React Project request api server and works well. But sometimes api server response this error Access to fetch at ‘https://api.xxxx.com/’ from origin ‘https://xxxx.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
Why same client request sometime response cors error?
My Api Server run AWS LoadBalancer + Ec2 Instance 3.
This is about my issue?