juzhiyuan commented on a change in pull request #158: Adding api key for the
request
URL:
https://github.com/apache/incubator-apisix-dashboard/pull/158#discussion_r394081680
##########
File path: src/utils/request.ts
##########
@@ -51,6 +56,9 @@ const errorHandler = (error: { response: Response }):
Response => {
const request = extend({
errorHandler, // 默认错误处理
credentials: 'include', // 默认请求是否带上cookie
+ headers: {
+ 'X-API-KEY': fetchAPIKey()
Review comment:
and because the APISIX doesn't support fetching APIKEY , so we could use the
fixed value now.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services