I’m working with https://github.com/JetBrains/create-react-kotlin-app and have to enable CORS, but cannot figure out how. What I have tried so far, was placing a webpack config js file in the root directory with this content:
Copy code
headers: {'Access-Control-Allow-Origin': '*'}
Anyone knows how to configure this properly?
g
gbaldeck
10/10/2018, 3:02 PM
What's the purpose for enabling CORS? Is it something you could do instead with the webpack
proxy
configuration?
p
pxdr
10/10/2018, 3:18 PM
Want to grab some data from another service via axio. Maybe the proxy configuration helps also out of here: