How should I implement x-api-key and api rate limit in CodeIgniter 4 ? |
Hi
I have a bunch of ResourceController controllers which build a simple api rest Then I have a filter with this before code (which is assigned only to api routes) Code: Services::response()->setHeader('Access-Control-Allow-Origin',$base_url); I have to implement for all the api controllers, the following 1. X-API-KEY 2. API rate limit (fixed for all routes, very basic) Which would be the best way to implement each? Create a new filter for each feature? Does anyone have any useful links to share to get started? Thanks a lot
Enrique
https://beza.com.ar |
Messages In This Thread |
How should I implement x-api-key and api rate limit in CodeIgniter 4 ? - by kabeza - 05-24-2022, 05:32 PM
RE: How should I implement x-api-key and api rate limit in CodeIgniter 4 ? - by iRedds - 05-24-2022, 06:11 PM
RE: How should I implement x-api-key and api rate limit in CodeIgniter 4 ? - by kenjis - 05-25-2022, 02:11 AM
RE: How should I implement x-api-key and api rate limit in CodeIgniter 4 ? - by kabeza - 05-26-2022, 05:41 AM
|