0

I fallow to this REST API codeIgniter 3 guide:

https://github.com/moemoe89/simple-codeigniter-rest-api

This steps done:

You can test the API by including header Content-Type, Client-Service & Auth-Key with value application/json,frontend-client & simplerestapi in every request

Now:

[POST] /auth/login json { "username" : "admin", "password" : "Admin123$"}


everytime I get:

Severity: Notice

Message: Undefined index: HTTP_REFERER

Filename: html/error_general.php

Line Number: 4

Due to large code, you can fallow to this three files to review code:

Controller/book.php

https://github.com/moemoe89/simple-codeigniter-rest-api/blob/master/application/controllers/Book.php

Controller/Auth.php

https://github.com/moemoe89/simple-codeigniter-rest-api/blob/master/application/controllers/Auth.php

Models/MyModel.php

https://github.com/moemoe89/simple-codeigniter-rest-api/blob/master/application/models/MyModel.php
  • https://stackoverflow.com/questions/19976189/notice-undefined-index-http-referer – vee Nov 20 '22 at 02:51

0 Answers0