Saleem Javed • almost 7 years ago
CORS configuration for AWS amplify.
Need help:
Please provide CORS configuration for AWS Amplify. And google App Engine. My app is hosted on AWS / Google cloud......
Same as given for netlify (for sample apps)
Thanks:
Comments are closed.

3 comments
Alex Sopinka • almost 7 years ago
I'm also getting issues trying to login with Blockstack. Was working a week ago using ngrok. Now I'm getting CORS issues and even when I host on another public server, I'm getting "Uncaught (in promise) undefined" error on Blockstack auth page.
yknl • almost 7 years ago
Have you tried the instructions to set CORS headers on AWS Amplify?
https://aws-amplify.github.io/docs/js/api#customizing-http-request-headers
For Netlify you should include a _headers file with your build.
https://github.com/blockstack/animal-kingdom/blob/master/cors/_headers
Matthew Little • almost 7 years ago
This branch of the app generator has minimal config files for Netlify and Amplify. Permissive CORS headers are required only for the manifest.json file. https://github.com/blockstack/blockstack-app-generator/tree/feature/webpack-cors-config/webpack/templates
amplify.yml - https://github.com/blockstack/blockstack-app-generator/blob/feature/webpack-cors-config/webpack/templates/amplify.yml
netlify.toml - https://github.com/blockstack/blockstack-app-generator/blob/feature/webpack-cors-config/webpack/templates/netlify.toml
Note that these are used for the webpack-based hello-blockstack app -- changes may be required to accommodate your project structure.