phpmyadmin / error-reporting-server

phpMyAdmin server side component for the error reporting system
MIT License
19 stars 28 forks source link

Incorrect header & missing header in reports.phpmyadmin.net #125

Closed nijel closed 7 years ago

nijel commented 8 years ago

Visiting: https://reports.phpmyadmin.net/incidents/create

Return:

Content-Type: text/html; charset=UTF-8

instead of content-type that match JSON data. also "X-Content-Type-Options" header was not sent (with nosniff value)

fix:

  1. send header: Content-Type: application/json; charset=UTF-8 instead of: Content-Type: text/html; charset=UTF-8
  2. send header: X-Content-Type-Options: nosniff