-
-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Receiving CORS error when request URL becomes too long #1928
Comments
This might be a restriction in Express or the cors module. Another possible issue could be the query string array limit. |
I'll give this a shot, thanks! |
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: |
This is good to know, thanks for sharing! |
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: