Skip to content

Commit

Permalink
cors url changed
Browse files Browse the repository at this point in the history
  • Loading branch information
SwarnenduG07 committed Dec 29, 2024
1 parent 7552df2 commit e4934fd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v1
Expand All @@ -19,7 +19,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: ./file-share-rust-backend
push: true
Expand Down
2 changes: 1 addition & 1 deletion file-share-rust-backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async fn main() {
};

let cors = CorsLayer::new()
.allow_origin("http://localhost:3000".parse::<HeaderValue>().unwrap())
.allow_origin("https://prigen.swarnendu.me/".parse::<HeaderValue>().unwrap())
.allow_headers([AUTHORIZATION, ACCEPT, CONTENT_TYPE])
.allow_credentials(true)
.allow_methods([Method::GET, Method::POST, Method::PUT]);
Expand Down
1 change: 0 additions & 1 deletion frontend/app/(auth)/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const Signin = () => {
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState<string | null>(null);

console.log('Backend URL:', process.env.NEXT_PUBLIC_API_BASE_URL);

const handleLogin = async (email: string, password: string) => {
setIsLoading(true);
Expand Down
1 change: 0 additions & 1 deletion frontend/app/(protected)/recever/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Separator } from '@/components/ui/separator';
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
import { format } from 'date-fns';
import { PassThrough } from 'stream';

interface ReceivedFile {
id: string;
Expand Down

0 comments on commit e4934fd

Please sign in to comment.