You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a feathers API with a MongoDB behind it and an Angular website, all running in a Docker container. All functioned normally until I recently started receiving CORS errors on some of my requests. I realised that the only difference between failing requests and successful ones is their length. The base request works and certain queries work separately, but as soon as I have all the queries in one request I receive a CORS error. A request of character length 485 works fine, but one of length 625 gives a CORS error. So at some length in between those it must be failing
Expected behavior
My request should return the data I'm querying.
Actual behavior
I receive the following error:
Access to XMLHttpRequest at 'REQUEST' from origin 'FRONT-END' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
System configuration
Module versions (especially the part that's not working): My package.json contains the following relevant feathers packages:
Thanks for the help @daffl. We found the issue afterall, it wasn't to do with Feathers.js directly, but was rather due to the Node HTTP_MAX_HEADER_SIZE:
Steps to reproduce
I have a feathers API with a MongoDB behind it and an Angular website, all running in a Docker container. All functioned normally until I recently started receiving CORS errors on some of my requests. I realised that the only difference between failing requests and successful ones is their length. The base request works and certain queries work separately, but as soon as I have all the queries in one request I receive a CORS error. A request of character length 485 works fine, but one of length 625 gives a CORS error. So at some length in between those it must be failing
Expected behavior
My request should return the data I'm querying.
Actual behavior
I receive the following error:
System configuration
Module versions (especially the part that's not working): My package.json contains the following relevant feathers packages:
NodeJS version: 10.15.3
Operating System: Windows 10 Pro (10.0.18363 (64-bit))
Browser Version: Tested on latest Chrome (Version 81.0.4044.113 (64-bit)) and Opera (Version:65.0.3467.78 (64-bit)) browser
The text was updated successfully, but these errors were encountered: