Temel olarak Azure'a yüklenen web api'ye erişmeye çalışıyorum. Ben haklıAçısal -> Web Api 2: "Hayır-Erişim-İzin-İzin-Kökeni" üstbilgisi "
Origin: http://localhost:51407
içeren (angularjs kullanarak) bir Ajax isteği göndermek zaman hatası alıyorum Ancak
public static void Register(HttpConfiguration config)
{
var cors = new EnableCorsAttribute("http://localhost:51407", "*", "*");
config.EnableCors(cors);
:
ben ekledim benim CORS benim WebApiConfig sınıfına bağlıyor
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:51407' is therefore not allowed access.
Sorun ne olabilir?