Skip to content
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

405 (cors error) on specific location #2409

Open
rap2hpoutre opened this issue Mar 7, 2024 · 0 comments
Open

405 (cors error) on specific location #2409

rap2hpoutre opened this issue Mar 7, 2024 · 0 comments

Comments

@rap2hpoutre
Copy link

I created a nginx-proxy instance in a docker compose file:

  nginx-proxy:
    restart: always
    image: nginxproxy/nginx-proxy
    ports:
      - "80:80"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - ./.server/vhost:/etc/nginx/vhost.d

My vhost is like this:

client_max_body_size 50m;

location /encrypt {
  client_max_body_size 350m;
}

The goal is to allow 350m on a specific route, 50m otherwise.

It seems there is a problem because now, my route /encrypt returns cors error.
In other cases, there is no cors error. Cors are configured via nodejs for the whole application.

I don't reproduce this error without the nginx proxy.
How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant