Welcome Guest, Not a member yet? Register   Sign In
API Exceptions & Detailed Errors Shown in Production Environment CI 4.04
#1
Star 

Hi,

I am using version. 4.04 I created some restful APIs and was checking the exception handling by using wrong controller names etc in PRODUCTION environment.

To my surprise its showing detailed errors while I have already set environment to production in .env file. In the browser its not showing anything but in postman its sending detailed error reports.

Do I need to make any further changes to stop this detailed error reporting in APIs.

Regards
Reply
#2

You could try setting it in the .htaccess file at top.


SetEnv CI_ENVIRONMENT 'production'
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB