【问题标题】:Restapi sends "invalid api key" message to client sideRestapi 向客户端发送“invalid api key”消息
【发布时间】:2022-01-16 08:08:56
【问题描述】:

我正在使用 codeigniter 3 创建一个 rest api,它运行良好,
但我遇到了如何显示的问题

{"status":false,"error":"Invalid API key "}
在客户端和服务器端,
这样当Invalid key可以向用户客户端发送“api key invalid”消息

【问题讨论】:

    标签: php ajax codeigniter codeigniter-restserver apiclient


    【解决方案1】:

    您需要在您的数据库中查找或添加 api_rest_access

    还要检查application/config/rest.php

    并通过邮递员发送,如果您使用的是Rest API on CodeIgniter3,则无法使用GET访问

    【讨论】:

      猜你喜欢
      • 2015-04-07
      • 2019-04-29
      • 1970-01-01
      • 1970-01-01
      • 2022-01-15
      • 1970-01-01
      • 2021-07-18
      • 2023-04-01
      相关资源
      最近更新 更多