Skip to content

Commit 0a933b0

Browse files
committed
Adding the missing config.EnableCors(); to WebApiConfig.cs
1 parent f45b432 commit 0a933b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eFormAPI/eFormAPI/App_Start/WebApiConfig.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public static void Register(HttpConfiguration config)
2020
{
2121
// Web API configuration and services
2222
// Configure Web API to use only bearer token authentication.
23+
config.EnableCors();
2324
config.SuppressDefaultHostAuthentication();
2425
config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType));
2526
config.Filters.Add(new HostAuthenticationFilter(CookieAuthenticationDefaults.AuthenticationType));

0 commit comments

Comments
 (0)