build: add cors for debugging frontend
This commit is contained in:
parent
c5ecf00932
commit
de5dc274d7
@ -64,6 +64,9 @@ public class Program
|
|||||||
policy.AllowAnyMethod();
|
policy.AllowAnyMethod();
|
||||||
policy.AllowAnyHeader();
|
policy.AllowAnyHeader();
|
||||||
policy.AllowCredentials();
|
policy.AllowCredentials();
|
||||||
|
#if DEBUG
|
||||||
|
policy.WithOrigins("http://localhost:4200");
|
||||||
|
#endif
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user