duanaoshu1989 2015-07-02 13:14
浏览 28

使用$ auth.signup(用户)时无法获取请求有效负载

I have a problem with satellizer api signup, when call the method $auth.signup(user) in my backend made with CodeIgniter I can't retrieve the values sent in user.

I tried everything

The methos of my library REST for options call

$this->options('name'); // this is null

link library

I tried get payload manually with this

$request_body = file_get_contents('php://input');

$data = json_decode($request_body); //this is null too

I don't know that can be please, help me!

Thank you all!! Best regards.

  • 写回答

1条回答 默认 最新

  • duanqiao2225 2015-07-02 14:47
    关注

    I fixed and the solutions is here

    Summarizing, the browser send two request one OPTIONS for check if the server accept custom headers and after request POST with data.

    Thanks for your time!

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分