I am looking to be able to successfully send HTTP requests out of forest, and want to understand how to properly set up my Cors config.
Every time I try to send a request I get the following error:
“Access to XMLHttpRequest at ‘request URL’ from origin ‘http://app.forestadmin.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.”
How do I properly setup my cors config if I’m not using rails? And what url do I need to provide? http://app.forestadmin.com/ , my url on heroku if I’m using that, or my local server if I’m using development?
Thanks in advance!
Please provide any relevant information about your setup.
- Package Version: 0.0.1
- Express Version: 4.16.3
- Sequelize Version: 5.15.1
- Database Dialect: MySQL2
- Database Version: 1.7.0