ronething commented on issue #8792: URL: https://github.com/apache/apisix/issues/8792#issuecomment-1418640415
@mscb402 yes, but if use `whitelist`, the `allowed_by_methods` does not work. for example the POST method is allowed like below. ``` $ curl -i -ubaz:foo http://127.0.0.1:9080/get -X POST HTTP/1.1 405 METHOD NOT ALLOWED Content-Type: text/html; charset=utf-8 Content-Length: 178 Connection: keep-alive Date: Mon, 06 Feb 2023 07:37:04 GMT Allow: OPTIONS, GET, HEAD Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Server: APISIX/3.1.0 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>405 Method Not Allowed</title> <h1>Method Not Allowed</h1> <p>The method is not allowed for the requested URL.</p> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
