Sending message to background script

You cannot simply use messaging the same way you would use it in a content script from an arbitrary webpage’s code. There are two guides available in the documentation for communicating with webpages, which correspond to two approaches: (externally_connectable) (custom events with a content script) Suppose you want to allow http://example.com to send a message … Read more

Allow All Content Security Policy?

For people who still want an even more permissive posts, because the other answers were just not permissive enough, and they must work with google chrome for which * is just not enough: default-src * data: blob: filesystem: about: ws: wss: ‘unsafe-inline’ ‘unsafe-eval’ ‘unsafe-dynamic’; script-src * data: blob: ‘unsafe-inline’ ‘unsafe-eval’; connect-src * data: blob: ‘unsafe-inline’; … Read more

CORS in .NET Core

Assume you have the answer, but for the benefit of searchers, I had the same problem with the standard tutorial on .NET Core Cors. One of the many errors encountered: XMLHttpRequest cannot load localhost:64633/api/blogs. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘localhost:56573’ is … Read more

Excel VBA to answer Internet Explorer 11 download prompt, in Windows 10?

Consider downloading historic data for shares via XMLHttpRequest instead of IE automation. In the example below share ISIN is specified (SE0001493776 for AAK), first request returns share id (SSE36273), and second request retrieves historic data by id, then shows it in notepad as text, and saves as csv file. Sub Test() Dim dToDate, dFromDate, aDataBinary, … Read more