File tree Expand file tree Collapse file tree
GraphQLAdaptor/Grid_GraphQLAdaptor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77builder . Services . AddRazorComponents ( )
88 . AddInteractiveServerComponents ( ) ;
99builder . Services . AddSyncfusionBlazor ( ) ;
10- builder . Services . AddCors ( options =>
11- {
12- options . AddPolicy ( "AllowSpecificOrigin" , policy =>
13- {
14- policy . WithOrigins ( "http://localhost:5272" )
15- . AllowAnyHeader ( )
16- . AllowAnyMethod ( )
17- . AllowCredentials ( ) ;
18- } ) ;
19- } ) ;
2010// Register GraphQL services.
2111builder . Services . AddGraphQLServer ( ) . AddQueryType < GraphQLQuery > ( ) . AddMutationType < GraphQLMutation > ( ) ;
2212
3121}
3222app . UseStatusCodePagesWithReExecute ( "/not-found" , createScopeForStatusCodePages : true ) ;
3323app . UseHttpsRedirection ( ) ;
34- // Use CORS
35- app . UseCors ( "AllowSpecificOrigin" ) ;
3624app . UseAntiforgery ( ) ;
3725app . MapStaticAssets ( ) ;
3826app . MapRazorComponents < App > ( )
You can’t perform that action at this time.
0 commit comments