CoderDmitri Access to fetch has been blocked by CORS policy: No ’Access-Control-Allow-Origin’ - FIXED!
🎯 Загружено автоматически через бота:
🛑 Оригинал:
📺 CoderDmitri —
📃 Оригинальное описание:
Access to fetch at ’http://localhost:4000/api/courses’ from origin ’http://localhost:3001’ has been blocked by CORS policy: No ’Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ’no-cors’ to fetch the resource with CORS disabled.
codes:
- npm install cors
- const cors = require(’cors’);
- (cors());
Solution!
1 view
0
0
2 years ago 00:01:59 5
[CoderDmitri] Access to fetch has been blocked by CORS policy: No ’Access-Control-Allow-Origin’ - FIXED!