-
Notifications
You must be signed in to change notification settings - Fork 202
CORS config parameter parsing #1046
Comments
Hi @simoami, thanks for opening the issue! If this is the case, I should handle other boolean environment variables too, like The TypeScript warning is not an error, so it should compile, but that's something already on my todo and I'm going to fix it ASAP. |
For now, if you remove the environment variable, it should work, because |
I've fixed this, but I'll also check the codebase for other environment variables booleans. |
I'll open another issue for the TypeScript warning so we can check on it |
Thank you! I should point out that this was working before. Perhaps dotenv
isn't parsing properly?
…On Mon, Mar 16, 2020, 2:15 PM Anand Chowdhary ***@***.***> wrote:
I've fixed this, but I'll also check the codebase for other environment
variables booleans.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1046 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPRT6DQQPIACGGENB7R4XTRHZUEVANCNFSM4LMP5JNQ>
.
|
Maybe something to do with the fact that it was in @staart/api before, and is now in a separate @staart/server package and the If anything similar doesn't work again, I'll reopen this issue, but we should be good to go for now. |
Ah got it. That must be it then. Thanks for fixing |
Hi @AnandChowdhary
It took me a while to get the app set up locally after the recent updates. The issue was that all xhr requests were failing because CORS couldn't be enabled even with proper config.
didn't return the necessary headers to allow requests to be sent from the UI.
My
.env
config:Upon close inspection, it looks like the value false was coming in as a string so it failed the condition here: https://github.com/staart/packages/blob/master/packages/server/index.ts#L52
Also a side issue during compilation:
The text was updated successfully, but these errors were encountered: