diff --git a/Authorization/Authorization.csproj b/Authorization/Authorization.csproj index eb4c40c..94f4bed 100644 --- a/Authorization/Authorization.csproj +++ b/Authorization/Authorization.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.Authorization diff --git a/Authorization/graphiql.html b/Authorization/graphiql.html new file mode 100644 index 0000000..a2b4351 --- /dev/null +++ b/Authorization/graphiql.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + +
Loading...
+ + + + diff --git a/Custom-Directives/Custom-Directives.csproj b/Custom-Directives/Custom-Directives.csproj index eeefa02..40ec73b 100644 --- a/Custom-Directives/Custom-Directives.csproj +++ b/Custom-Directives/Custom-Directives.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.CustomDirectives diff --git a/Custom-Directives/graphiql.html b/Custom-Directives/graphiql.html new file mode 100644 index 0000000..a2b4351 --- /dev/null +++ b/Custom-Directives/graphiql.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + +
Loading...
+ + + + diff --git a/Custom-HttpProcessor/Custom-HttpProcessor.csproj b/Custom-HttpProcessor/Custom-HttpProcessor.csproj index a481804..1aecdc0 100644 --- a/Custom-HttpProcessor/Custom-HttpProcessor.csproj +++ b/Custom-HttpProcessor/Custom-HttpProcessor.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.CustomHttpProcessor diff --git a/Custom-HttpProcessor/graphiql.html b/Custom-HttpProcessor/graphiql.html new file mode 100644 index 0000000..a2b4351 --- /dev/null +++ b/Custom-HttpProcessor/graphiql.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + +
Loading...
+ + + + diff --git a/File-Uploads/graphiql.html b/File-Uploads/graphiql.html new file mode 100644 index 0000000..a2b4351 --- /dev/null +++ b/File-Uploads/graphiql.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + +
Loading...
+ + + + diff --git a/File-Uploads/src/FileUploads.API/FileUploads.API.csproj b/File-Uploads/src/FileUploads.API/FileUploads.API.csproj index d7f4a9f..904f6c8 100644 --- a/File-Uploads/src/FileUploads.API/FileUploads.API.csproj +++ b/File-Uploads/src/FileUploads.API/FileUploads.API.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 GraphQL.Aspnet.Examples.MultipartRequest.API diff --git a/File-Uploads/src/FileUploads.UI/FileUploads.UI.csproj b/File-Uploads/src/FileUploads.UI/FileUploads.UI.csproj index 8558e3a..a25f461 100644 --- a/File-Uploads/src/FileUploads.UI/FileUploads.UI.csproj +++ b/File-Uploads/src/FileUploads.UI/FileUploads.UI.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 true Latest false diff --git a/Firebase-Authentication/firebase-authentication/Startup.cs b/Firebase-Authentication/firebase-authentication/Startup.cs index 8d5cc4f..6758631 100644 --- a/Firebase-Authentication/firebase-authentication/Startup.cs +++ b/Firebase-Authentication/firebase-authentication/Startup.cs @@ -11,6 +11,8 @@ namespace Firebase.AuthTest public class Startup { + private const string ALL_ORIGINS_POLICY = "_allOrigins"; + public Startup(IConfiguration configuration) { Configuration = configuration; @@ -21,6 +23,20 @@ public Startup(IConfiguration configuration) // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { + // to allow use on many of the tools for testing (graphiql, altair etc.) + // Do not do this in production + services.AddCors(options => + { + options.AddPolicy( + ALL_ORIGINS_POLICY, + builder => + { + builder.AllowAnyOrigin() + .AllowAnyHeader() + .AllowAnyMethod(); + }); + }); + var firebaseProjectId = this.Configuration.GetValue("firebaseProjectId"); if (string.IsNullOrWhiteSpace(firebaseProjectId)) throw new ArgumentException("Firebase Project Id must be set.", nameof(firebaseProjectId)); @@ -54,6 +70,7 @@ public void ConfigureServices(IServiceCollection services) // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { + app.UseCors(ALL_ORIGINS_POLICY); app.UseRouting(); // make sure to call Authentication and Authorization before GraphQL diff --git a/Firebase-Authentication/firebase-authentication/firebase-authentication.csproj b/Firebase-Authentication/firebase-authentication/firebase-authentication.csproj index a0924a0..b5556b2 100644 --- a/Firebase-Authentication/firebase-authentication/firebase-authentication.csproj +++ b/Firebase-Authentication/firebase-authentication/firebase-authentication.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 Firebase.AuthTest diff --git a/Firebase-Authentication/graphiql.html b/Firebase-Authentication/graphiql.html new file mode 100644 index 0000000..a2b4351 --- /dev/null +++ b/Firebase-Authentication/graphiql.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + +
Loading...
+ + + + diff --git a/LoggingProvider/LoggingProvider.csproj b/LoggingProvider/LoggingProvider.csproj index 6429168..a1739f8 100644 --- a/LoggingProvider/LoggingProvider.csproj +++ b/LoggingProvider/LoggingProvider.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.LoggingProvider diff --git a/LoggingProvider/graphiql.html b/LoggingProvider/graphiql.html new file mode 100644 index 0000000..a2b4351 --- /dev/null +++ b/LoggingProvider/graphiql.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + +
Loading...
+ + + + diff --git a/Subscriptions-AzureServiceBus/src/QueryMutation-Server/QueryMutation-Server.csproj b/Subscriptions-AzureServiceBus/src/QueryMutation-Server/QueryMutation-Server.csproj index 0e124cc..0dca740 100644 --- a/Subscriptions-AzureServiceBus/src/QueryMutation-Server/QueryMutation-Server.csproj +++ b/Subscriptions-AzureServiceBus/src/QueryMutation-Server/QueryMutation-Server.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.Subscriptions.QueryMutationServer diff --git a/Subscriptions-AzureServiceBus/src/SharedResources/SharedResources.csproj b/Subscriptions-AzureServiceBus/src/SharedResources/SharedResources.csproj index 2bc4933..78447eb 100644 --- a/Subscriptions-AzureServiceBus/src/SharedResources/SharedResources.csproj +++ b/Subscriptions-AzureServiceBus/src/SharedResources/SharedResources.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.Subscriptions.DataModel diff --git a/Subscriptions-AzureServiceBus/src/Subscriptions-Server/Subscriptions-Server.csproj b/Subscriptions-AzureServiceBus/src/Subscriptions-Server/Subscriptions-Server.csproj index 14c155e..e45a5ed 100644 --- a/Subscriptions-AzureServiceBus/src/Subscriptions-Server/Subscriptions-Server.csproj +++ b/Subscriptions-AzureServiceBus/src/Subscriptions-Server/Subscriptions-Server.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.Subscriptions.SubscriptionServer diff --git a/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector-tests/graphql-aspnet-azure-servicebus-connector-tests.csproj b/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector-tests/graphql-aspnet-azure-servicebus-connector-tests.csproj index fe0e7a3..913c37e 100644 --- a/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector-tests/graphql-aspnet-azure-servicebus-connector-tests.csproj +++ b/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector-tests/graphql-aspnet-azure-servicebus-connector-tests.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Tests.AzureServiceBus false diff --git a/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector/graphql-aspnet-azure-servicebus-connector.csproj b/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector/graphql-aspnet-azure-servicebus-connector.csproj index a2d3b70..b283463 100644 --- a/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector/graphql-aspnet-azure-servicebus-connector.csproj +++ b/Subscriptions-AzureServiceBus/src/graphql-aspnet-azure-servicebus-connector/graphql-aspnet-azure-servicebus-connector.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.AzureServiceBus latest diff --git a/Subscriptions-ReactApolloClient/src/Bakery.API/Bakery.API.csproj b/Subscriptions-ReactApolloClient/src/Bakery.API/Bakery.API.csproj index 79d5241..5cf77f5 100644 --- a/Subscriptions-ReactApolloClient/src/Bakery.API/Bakery.API.csproj +++ b/Subscriptions-ReactApolloClient/src/Bakery.API/Bakery.API.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 GraphQL.AspNet.Examples.ReactApollo diff --git a/Subscriptions-ReactApolloClient/src/Bakery.UI/Bakery.UI.csproj b/Subscriptions-ReactApolloClient/src/Bakery.UI/Bakery.UI.csproj index a23b518..7d26423 100644 --- a/Subscriptions-ReactApolloClient/src/Bakery.UI/Bakery.UI.csproj +++ b/Subscriptions-ReactApolloClient/src/Bakery.UI/Bakery.UI.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 true Latest false diff --git a/Unit-Testing/unit-testable-api/unit-testable-api.csproj b/Unit-Testing/unit-testable-api/unit-testable-api.csproj index 8d436d4..6482a05 100644 --- a/Unit-Testing/unit-testable-api/unit-testable-api.csproj +++ b/Unit-Testing/unit-testable-api/unit-testable-api.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 GraphQL.AspNet.Examples.TestApi diff --git a/Unit-Testing/unit-tests/unit-tests.csproj b/Unit-Testing/unit-tests/unit-tests.csproj index c393513..02581b2 100644 --- a/Unit-Testing/unit-tests/unit-tests.csproj +++ b/Unit-Testing/unit-tests/unit-tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 GraphQL.AspNet.Examples.TestApi.Tests false true