Open scheung38 opened 5 years ago
Hapi-Cors does not return an error message. It will set the correct headers for you on the request. When you make your request can you see origin and Access-Control-Allow-Origin headers in the developer tools of your browser?
React client running in localhost:3032:
Hapi server at localhost:3000:
"hapi": "^17.8.1", "hapi-cors": "^1.0.3",
When this is called, from
the response is: A cross-origin error was thrown. React doesn't have access to the actual error object in development
Tried:
as well as
Still don't work?