Chrome 65 blocks cross-origin . Client-side workaround to force download?

According to the discussion blob: and data: URLs are unaffected, so here is a workaround using fetch and Blobs. Client-side force download media function forceDownload(blob, filename) { var a = document.createElement(‘a’); a.download = filename; a.href = blob; // For Firefox https://stackoverflow.com/a/32226068 document.body.appendChild(a); a.click(); a.remove(); } // Current blob size limit is around 500MB for browsers … Read more

Using reactjs with requirejs

So I figured it out myself. I got the necessary files and instructions from this repo: jsx-requirejs-plugin. Once I had jsx plugin and modified version of JSXTransformer, I changed my code as instructed in the repository : require.config({ // … paths: { “react”: “path/to/react”, “JSXTransformer”: “path/to/JSXTransformer”, “jsx”: “path/to/jsx plugin” … } // … }); Then, … Read more

Error when deploying react app and it keeps sayings

There is a conflict in the casing C:\Users\Ruben|desktop\reactapp\test…. whereas the nodemodules is looking for C:\Users\Ruben|Desktop\Reactapp\test…. This is a windows specific problem, and previously react would have run the app regardless of this difference. Not anymore it seems. The solution I used was to locate the folder and open with code; that ensures that the path … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)