-
Notifications
You must be signed in to change notification settings - Fork 10
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 headers not set #34
Comments
Thank you for your question. Please let me make some assumptions first. In this case, if you are using the Slim framework on the backend (API) only. The frontend also base on the React, Vue or another frontend library/framework and managed via Webpack/Vite. The frontend application can call the api through the proxy in development environment. In the production environment, the slim whoops plugin should be disabled by default. Reference I hope my answer can solve your concern. |
Hey, I switched to using this middleware (and whooops) also for APIs. Endpoints accessed by javascript that encounter an exception get a 500 error message - see discussion in filp/whoops#666 ... I'd basically need to extend the PrettyPageHandler ... I guess that
might do the trick. Or do you see another way around?
Thanks
The text was updated successfully, but these errors were encountered: