refactor: use another origin
This commit is contained in:
@ -76,9 +76,7 @@ public class Program
|
|||||||
policy.AllowAnyMethod();
|
policy.AllowAnyMethod();
|
||||||
policy.AllowAnyHeader();
|
policy.AllowAnyHeader();
|
||||||
policy.AllowCredentials();
|
policy.AllowCredentials();
|
||||||
#if DEBUG
|
policy.SetIsOriginAllowed(_ => true);
|
||||||
policy.WithOrigins("http://localhost:4200");
|
|
||||||
#endif
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user