WaspW
Wasp15mo ago
p4j4r5

Can I disable cors on backend

I am using a nginx side car container to handle cors. However the server also tried to handle cors and it is sending multiple origins. I tried the middleware suggested in this and that doesn't work
https://wasp-lang.dev/docs/advanced/middleware-config#1-customize-global-middleware

I need to allow requests from https://youtube.com because the content script in the extension makes call from this domain
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
Wasp comes with a minimal set of useful Express middleware in every application. While this is good for most users, we realize some may wish to add, modify, or remove some of these choices both globally, or on a per-api/path basis.
Was this page helpful?