Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS setup can't seem to work in hosted environment #155

Open
publicvirtualvoid opened this issue Nov 10, 2024 · 3 comments
Open

CORS setup can't seem to work in hosted environment #155

publicvirtualvoid opened this issue Nov 10, 2024 · 3 comments

Comments

@publicvirtualvoid
Copy link

I could be missing something, but I don't think this will ever work in a hosted environment.
Does this need to pull the FE path from ENV?

const app = express();
app.use(cors({
origin: 'http://localhost:5173',
credentials: true,
}));
app.use(express.json());

@amhsirak
Copy link
Member

amhsirak commented Nov 10, 2024

@publicvirtualvoid what's your configuration to self host? We currently have provided local development infrastructure and in the next release will help users to self host.

Are you running it on a remote server and have set up a reverse proxy?

We have a few users that have modified our existing codebase to self host and are running it.

@getmaxun getmaxun deleted a comment from AmitChauhan63390 Nov 10, 2024
@publicvirtualvoid
Copy link
Author

I run everything behind traefik and use docker compose labels to configure each service.
I think the code just needs to be changed to pull from an env var instead.

@amhsirak
Copy link
Member

@publicvirtualvoid I'm working on setting up self-hosted infrastructure. Should be available by this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants