Skip to content

Rate limit doesn't work #563

@ozziest

Description

@ozziest

This is my configuration:

import { IApplicationConfig } from "axe-api";

const config: IApplicationConfig = {
  rateLimit: {
    enabled: true,
    maxRequests: 200,
    windowInSeconds: 5,
    trustProxyIP: false,
    adaptor: {
      type: "memory",
    }
  },
};

export default config

It should be able to see x-ratelimit-limit and x-ratelimit-remaining headers in the HTTP response, but I can't. It seems doesn't work.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnext-releaseThe feature will be released in the next releaseversion-patchIt is just a patch for the current version. It is not a new feature, nor a breaking change.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions