Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Configure(IApplicationBuilder app, IHostingEnvironment env)
- {
- var URLsCORS = new string[]
- {
- "http://localhost"
- };
- app.UseCors(builder =>
- {
- builder.WithOrigins(URLsCORS).AllowAnyHeader().AllowAnyMethod();
- });
- }
Add Comment
Please, Sign In to add comment