---
# System prepended metadata

title: Pizza Maker Client Hotfix

---

# Pizza Maker Client Hotfix

update src/App.js to this:

```js
import ToppingInterface from "./topping/ToppingInterface";

function App() {
  return (
    <div className="App">
      <h1 style={{ textAlign: "center" }}>Pizza Maker</h1>
      <ToppingInterface />
    </div>
  );
}

export default App;

```

# Pizza Maker API Hotfix

Make sure to comment out line 3 in the config.ru file:

```rb
require_relative "./config/environment"

# Allow CORS (Cross-Origin Resource Sharing) requests
use Rack::Cors do
    allow do
      origins '*'
      resource '*', headers: :any, methods: [:get, :post, :delete, :put, :patch, :options, :head]
    end
  end
  
use Rack::JSONBodyParser

run ApplicationController
use ToppingsController
```

# Params are missing

add the following to config.ru

```
use Rack::JSONBodyParser
```
Install rack-contrib so that the rack::JSONBodyParser code works.
```
bundle add rack-contrib
```