f / fatura

eArşiv / eFatura Fatura Oluşturucu
https://earsivportal.efatura.gov.tr/intragiris.html
Other
574 stars 88 forks source link

No 'Access-Control-Allow-Origin' hatası #23

Open batv45 opened 2 years ago

batv45 commented 2 years ago

nuxi dev --https komutu ile https olarak başlatıyorum sunucuyu ama getToken() çalıştırınca yinede bu hatayı veriyor Chrome Network tablosundan bağlantıya bakıyorum Referer: https://localhost:3000/faturalar Header'ını chrome sanırım otomatik değiştiriyor. O halde bu kütüphaneyi nasıl kullanıcam vue uygulamamda sanırım ben biryerde hata yapıyorum ?

Access to fetch at 'https://earsivportal.efatura.gov.tr/earsiv-services/assos-login' from origin 'https://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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.