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

Following the steps in tutorial result in CORS error if the new middlewares.ts approach is used #7

Open
intrinsic-blockchain opened this issue Dec 3, 2023 · 0 comments

Comments

@intrinsic-blockchain
Copy link

Since the new middlewares.ts is the recommended way of using. If I follow the steps in the tutorial and replace the index.ts file with middlwares.ts, I run into CORS error. My question is how to get access to the configModule.projectConfig.admins_cors property in the new approach. I am able to get rid of the CORS in the admin dashboard if I hard-code the string as shown in the image but I need to load the configModule object but not sure how to do it.

image

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

1 participant