diff --git a/frontend/_redirects b/frontend/_redirects new file mode 100644 index 0000000..91d73d9 --- /dev/null +++ b/frontend/_redirects @@ -0,0 +1 @@ +https://deploy-preview-126--feiracriativacm.netlify.com/api/* http://lab.cm.utfpr.edu.br:3000/api/:splat 200 \ No newline at end of file diff --git a/frontend/src/index.js b/frontend/src/index.js index 82c1a6b..66102c1 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -1,8 +1,12 @@ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; +import axios from 'axios'; import * as serviceWorker from './serviceWorker'; +axios.defaults.headers.post['Content-Type'] ='application/json;charset=utf-8'; +axios.defaults.headers.post['Access-Control-Allow-Origin'] = 'https://deploy-preview-126--feiracriativacm.netlify.com'; + ReactDOM.render(, document.getElementById('root')); // If you want your app to work offline and load faster, you can change