Skip to content

Commit e13c4f0

Browse files
author
Javier Suárez Ruiz
committed
2 parents 872ee45 + 507da71 commit e13c4f0

52 files changed

Lines changed: 4405 additions & 252 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Services/Catalog/Catalog.API/Startup.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ public void ConfigureServices(IServiceCollection services)
5353
});
5454
});
5555

56-
services.AddCors();
56+
services.AddCors(options =>
57+
{
58+
options.AddPolicy("CorsPolicy",
59+
builder => builder.AllowAnyOrigin()
60+
.AllowAnyMethod()
61+
.AllowAnyHeader()
62+
.AllowCredentials());
63+
});
5764

5865
services.AddMvc(mvcoptions =>
5966
{
@@ -78,7 +85,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
7885
.Wait();
7986

8087
// Use frameworks
81-
app.UseCors(policyBuilder => policyBuilder.AllowAnyOrigin());
88+
app.UseCors("CorsPolicy");
8289

8390
app.UseMvc();
8491

src/Services/Catalog/Catalog.API/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- catalog.data
1717

1818
catalog.data:
19-
image: eshop/mssql-server-private-preview
19+
image: microsoft/mssql-server-linux
2020
environment:
2121
- SA_PASSWORD=Pass@word
2222
- ACCEPT_EULA=Y

src/Services/Catalog/Catalog.API/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ConnectionString": "Server=tcp:127.0.0.1,1455;Initial Catalog=CatalogDB;User Id=sa;Password=Pass@word",
2+
"ConnectionString": "Server=tcp:127.0.0.1,1433;Initial Catalog=CatalogDB;User Id=sa;Password=Pass@word",
33
"Logging": {
44
"IncludeScopes": false,
55
"LogLevel": {

src/Web/WebMVC/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
- catalog.data
2828

2929
catalog.data:
30-
image: eshop/mssql-server-private-preview
30+
image: microsoft/mssql-server-linux
3131
environment:
3232
- SA_PASSWORD=Pass@word
3333
- ACCEPT_EULA=Y
@@ -55,7 +55,7 @@ services:
5555
- "5432:1433"
5656

5757
identity.data:
58-
image: eshop/mssql-server-private-preview
58+
image: microsoft/mssql-server-linux
5959
environment:
6060
- SA_PASSWORD=Pass@word
6161
- ACCEPT_EULA=Y

src/Web/WebMVC/wwwroot/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ form .col-md-4 {
825825
text-transform: uppercase;
826826
}
827827

828+
828829
.navbar-nav {
829830
margin-top: 10px;
830831
margin-bottom: 7.5px;
Binary file not shown.

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/fonts/Montserrat-Bold.svg

Lines changed: 1933 additions & 0 deletions
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)