John-Weeks-Dev / tiktok-clone-api

This is a Tiktok Clone (API) made with Nuxt 3, Vue JS, Laravel (API), Tailwind CSS, and Pinia
https://youtube.com/watch?v=CHSL0Btbj_o
68 stars 33 forks source link

error cors #4

Open vananh0107 opened 1 year ago

vananh0107 commented 1 year ago

127.0.0.1/:1 Access to XMLHttpRequest at 'http://localhost:8000/api/home' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://localhost:3000' that is not equal to the supplied origin.