P0SEID0N / BDOAPP

0 stars 0 forks source link

Add Accept header to ALL REQUESTS #37

Open P0SEID0N opened 2 years ago

P0SEID0N commented 2 years ago

In laravel when you address the Accept Header with the following:

Accept: application/json

Then all returns will be given to you in JSON format. With the current headers we are getting error codes in HTML, this is bad for the app. This will throw so many unhandled exception warnings. Fix this immediately by adding Accept headers to all calls.

Most likely on all FETCH requests (maybe worth making a fetch wrapper so we can install all our appropriate headers)