Replies: 1 comment
-
are you may using node 14 now? try to use node 12. In my case the cors issue was just a side effect because the upload was failing and was throwing an exception, so its tricked our load balancers with a 500 server error, which results in a cors issue for the browsers prefilight requests. Or the file is maybe just throwing an error while uploading. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am running into a very odd issue related to uploading files. For some reason, uploading a specific gif is causing a CORS error;
No 'Access-Control-Allow-Origin' header is present on the requested resource.
.The reason this is odd is because it is only that specific file. All other files (of the same and different type) that I have tested (50 test file uploads or so) are uploading perfectly.
I am using
apollo-server-express
(2.19) on my back end along sidecreateUploadLink
fromapollo-upload-client
(14.1.2) on the front end.As stated, this error is only occurring with a single specific file - all other file uploads have worked perfectly.
I was wondering if anyone has any idea as to why this may be?
If its any consolation, this is the request/response headers for a fail and success upload
Fail upload request/response headers
Success upload request/response headers
Beta Was this translation helpful? Give feedback.
All reactions