However if I change the header value of the request from
I get a 200 response. I have Nginx in front of n8n but I can’t spot anything in the setup that would cause this. The request is obviously making its way to n8n for it to return that response in the 404.
Have never seen this problem before. Did you try if it works without nginx? Because maybe the configuration is wrong.
If it works directly but not via nginx we know at least that the problem lies there. In this case it is best to look in this forum for “nginx”. There are already some existing topics like this one with an example configuration:
and while it looked like that was working, it just caused the issue described. If I set the proxy_set_header Accept: in nginx to add in the type it started working for the rest calls but other calls started failing.
I ended up removing the config file entries and just working with pm2 to set the VUE_APP_URL_BASE_API variable, removing the Accept entry in Nginx and that ended up fixing the communication issue.