Recently the AE Testnet Node is throwing the following CORS error:
Access to XMLHttpRequest at 'https://sdk-testnet.aepps.com/v2/key-blocks/current' from origin 'https://app.jelly.market' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://localhost:3000' that is not equal to the supplied origin.
We should check this together, because sdk-testnet is the official testnet node as far as I know and all developers that want to use waellet or even base aepp on the tastnet could have this issue.
Access to XMLHttpRequest at 'https://sdk-testnet.aepps.com/v2/key-blocks/current' from origin 'http://localhost:3000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://app.jelly.market' that is not equal to the supplied origin.
We further debugged this together with @kraykov and it turns out the cached responses are missing the Vary: Origin which is important piece.
As an immediate workaround if you’re switching between apps on different domains (e.g. localhost and your staging domain), you have to clear your browser cache.
I’ll be working to fix that in general in the next week(s).