Getting Started with Slim4?

I’m a little crossed up here, no pun intended.

Steps so far were:

  1. Install slim-skeleton via composer
  2. Pull up /public/ expecting to see Hello world!
  3. Seeing 405 "description": "Method not allowed. Must be one of: OPTIONS" error which I googled to understand this is a CORS error which i suspected.
  4. Arrived at Setting up CORS - Slim Framework
  5. Little confused as to where these might go in the slim-skeleton project structure.

No matter where I copy/paste these in I still get 405 errors.

Any help would be appreciated.

Thanks,

Check the routes first, probably you are trying to access a route that doesn’t have the GET method [yet].