0

So I have an app with Slim PHP framework and I am allowing a certain port, however, the header been sent is from localhost:3002, but NPM is starting in port 3000...weird?

API:

return $response->withJson($remappedData)
    ->withHeader('Access-Control-Allow-Origin', 'http://localhost:3000'

obviously because of that, my get rquest fails. any ideas?

if i npm start -p 3002, it sort of reverts back to 3000

Compiled successfully!

You can now view mint-apt-finder in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://'interal-ip':3000
sideshowbarker
  • 81,827
  • 26
  • 193
  • 197

0 Answers0