Skip to content

Commit

Permalink
Merge pull request #22 from Star-Academy/fixCI
Browse files Browse the repository at this point in the history
feat: front can request to backend
  • Loading branch information
msm1984 authored Aug 27, 2024
2 parents 576a1c5 + 2880f1f commit 00839a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CD_Backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
context: .
file: backend.Dockerfile
push: true
tags: mohammadsadeghmontazeri/starback:latest
tags: mohammadsadeghmontazeri/starback:${{ steps.tag_version.outputs.new_tag }}

- name: build and push docker migrate to registry
uses: docker/build-push-action@v5
with:
context: .
file: migrate.Dockerfile
push: true
tags: mohammadsadeghmontazeri/migratestar:latest
tags: mohammadsadeghmontazeri/migratestar:${{ steps.tag_version.outputs.new_tag }}

- name: Create Release
id: create_release
Expand Down
5 changes: 4 additions & 1 deletion src/Web/Startup/ServiceExtensions.Cors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ public static void AddCorsPolicy(this IServiceCollection services)
{
options.AddPolicy("AllowSpecificOrigins", corsPolicyBuilder =>
{
corsPolicyBuilder.WithOrigins("http://localhost:4200")
corsPolicyBuilder.WithOrigins(
"http://localhost:4200",
"http://external.abriment.com:30081"
)
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
Expand Down

0 comments on commit 00839a1

Please sign in to comment.