The ENTIRE app is working in production, except this error when signing up:
- Access to XMLHttpRequest at 'http://localhost:5000/api/signup' from origin
- 'http://localhost:3000' has been blocked by CORS policy: Response to
- preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'
- header is present on the requested resource.
Fix
The express add was using cors with headers, but there were DUPLICATE headers being set. Instead, I commented out and used just this middleware:
Overview
The ENTIRE app is working in production, except this error when signing up:
Fix
The
express
add was usingcors
with headers, but there were DUPLICATE headers being set. Instead, I commented out and used just this middleware:Ticket
Trello Ticket: #136