filmov
tv
#fixbug Fetch API Vietjs with Expressjs: No 'Access-Control-Allow-Origin' header is present on the..
![preview_player](https://i.ytimg.com/vi/q22uGTnWKMw/maxresdefault.jpg)
Показать описание
In this video, I will show you: How to fix the error: Access to fetch has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Error: Fetch API in Vietjs with Expressjs (Nodejs).
(Sửa lỗi: Fetch API giữa Vietjs và Expressjs (nodejs) )
export default defineConfig({
plugins: [react()],
server: {
proxy: {
"/api": {
secure: false,
},
},
},
});
Hope it can help you. Thanks and see you later!
#fixbug , #vitejs , #web_developer, #expressjs , #fetchdata
(Sửa lỗi: Fetch API giữa Vietjs và Expressjs (nodejs) )
export default defineConfig({
plugins: [react()],
server: {
proxy: {
"/api": {
secure: false,
},
},
},
});
Hope it can help you. Thanks and see you later!
#fixbug , #vitejs , #web_developer, #expressjs , #fetchdata