I deployed Animal Kingdom to Netlify using my Github repo and run into the CORS issue when attempting to authenticate with Blockstack.
The problem is that by opting to have netlify use my Github repo for deployment, netlify doesn’t appear to create a ‘build’ directory in my Github repo where I can add the CORS headers needed to allow the Blockstack browser to authenticate.
Here is a link to my Github repo: https://github.com/pcdavis/animal-kingdom
Has anyone run into this and know of a way to get around this? I can always npm run build and upload the file to netlify, but I would prefer to just push changes to the repo and have netlify take care of the rest.
Any ideas would be greatly appreciated.
UPDATE / SOLUTION: I found a possible solution - netlify allows users to drag and drop revised build folders into the site’s deployment section - then netlify redeploys the site without accessing the Github repo. Although I don’t think this solution will work after committing and pushing other code changes, it solved the immediate problem. Here’s the basic process I used: After running ‘npm run build’, I copied the _headers and _redirects files into the build directory. Then I opened the deployment tab for my site in netlify and dragged my build folder from Windows Explorer and dropped it onto the target area in netlify. Netlify automatically created a new deployment using that build folder and everything worked.