Skip to content

Commit

Permalink
cors removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloDiazSSA committed Nov 24, 2023
1 parent 66323d1 commit 83cac18
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,3 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml

#SettingsFiles
/appsettings.Production.json
#DAtaTests
4 changes: 3 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
}
});
});
/*
builder.Services.AddCors(options =>
{
options.AddPolicy("AllowOrigins", options => options.AllowAnyOrigin());
});
*/

builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
Expand All @@ -71,7 +73,7 @@
app.UseSwaggerUI();

app.UseHttpsRedirection();
app.UseCors();
//app.UseCors();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();
Expand Down
43 changes: 43 additions & 0 deletions appsettings.Production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"DefaultConnection": ""
},
"CRED": {
"EmailIntA": "[email protected]",
"PwdIntA": "35ffd846c3d5e1d44ee73a37a16d541bbb78f829e6c351a584934cad84ed9fb0",
"SaltIntA": "12345678900",
"EmailIntU": "[email protected]",
"PwdIntU": "7da3c57c0d420776006a6cebe00141f182567842371e21707722928055062689",
"SaltIntU": "12345678901",
"EmailExtA": "[email protected]",
"PwdExtA": "6c78da1c68e521a560d49739475dd9e243e291c617e6a67cc3ee2a5c041cff4e",
"SaltExtA": "12345678902",
"EmailExtU": "[email protected]",
"PwdExtU": "17e434e1a6a31d0ad82d005fa6d631f386b1dc39e5ba1c89eaa4e70fefd64e69",
"SaltExtU": "12345678903"
},
"Policy": {
"A": "AUTHORIZED"
},
"JWT": {
"Key": "SecretKeyWithMoreThan40CharactersIntoTheContentToWorksWithSHA256",
"expirationToken": "30", //Define el tiempo en minutos en que los token generados estén vigentes
"Issuer": "http://zlomxauat01:8083/",
"Audience": "http://zlomxauat01:8083/"
},
"Encrypt": {
"Key": "T6_u4qwePEMFk{Qm-*<7c,s:KH9gjyJV",
"Iv": "V]tr{+7SKQ~pxWFw"
},
"SP": {
"Signup": "SP_Signup",
"Signin": "SP_Signin"
}
}

0 comments on commit 83cac18

Please sign in to comment.