Skip to content

Commit

Permalink
Merge branch 'develop' into release/v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
minsulee2 committed Jul 1, 2022
2 parents da1d896 + 7be0db0 commit fc59587
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const middleware = new Middleware();
app.use(middleware.expressJsonRequestBodySizeLimiter());
app.use(middleware.expressUrlencdedRequestBodySizeLimiter());
app.use(middleware.corsLimiter());
app.use(middleware.ipWhitelistLimiter());
app.use(middleware.blockchainApiRateLimiter);

const eventHandler = NodeConfigs.ENABLE_EVENT_HANDLER === true ? new EventHandler() : null;
Expand Down Expand Up @@ -112,6 +111,9 @@ app.get('/last_block_number', (req, res, next) => {
.end();
});

// NOTE(platfowner): This middleware should be placed after minimally required APIs (see above).
app.use(middleware.ipWhitelistLimiter());

/**
* Dev Client GET APIs (available to whitelisted IPs)
*/
Expand Down

0 comments on commit fc59587

Please sign in to comment.