Skip to content

Commit

Permalink
Release (v6) (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
instructr13 authored Oct 19, 2024
2 parents 9461f1d + aad0a40 commit 6728abb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions apps/frontend/src/app/atoms/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const eventStreamAtom = atom(
Accept: "text/event-stream",
},
signal: newController.signal,
mode: "no-cors",
});

if (!response.ok) {
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/src/app/routes/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default function Page() {
headers: {
"Content-Type": "application/json",
},
mode: "no-cors",
body: JSON.stringify({
widthRandom: randomWidth,
heightRandom: randomHeight,
Expand Down
8 changes: 1 addition & 7 deletions apps/solver/src/features/ui-comm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ app.use(

app.use(
cors({
origin: (origin) => {
if (isDevelopment) {
return origin;
}

return origin.endsWith("data-maki.pages.dev") ? origin : "";
},
origin: (origin) => origin,
}),
);

Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 6728abb

Please sign in to comment.