Witam zrobiłem sobie dwa vhosty jeden powiedzmy projekt.com drugi projekt.api.com na porcie 8000. I zrobiłem sobie tak
fetch('http://projekt.api.com:8000/') ... i jeszcze wczoraj mi normalnie odpukał to "api" a teraz
Fetch API cannot load http://projekt.api.com:8000/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://tree.com' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
TypeError: Failed to fetch
Szukałem rozwiązania, zrozumiałem (nie wiem czy dobrze) że to przeglądarka blokuje połączenie. Ale nie za bardzo zrozumiałem jak mam rozwiązać ten problem. Proszę o pomoc :)