BFYDigital / e-arsiv-fatura-dotnet

30 stars 12 forks source link

Blazor da dll olarak kullanımda Access-Control-Allow-Origin hatası alıyorum. #4

Closed alieymur closed 1 year ago

alieymur commented 1 year ago

Blazor kodu var configuration = FaturaServiceConfigurationFactory.Create(); configuration.ServiceType = ServiceType.Prod; configuration.Username = "xxxxxxx"; configuration.Password = "xxxxxxx"; FaturaService faturaService = new(configuration); faturaService.GetToken().Wait();

    Alınan Hata
    Access to fetch at 'https://earsivportal.efatura.gov.tr/earsiv-services/assos-login' from origin 'http://localhost:5120' 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.
alieymur commented 1 year ago

Çözüldü