You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: