CORS policy error

Since recently seems Aeternity API has introduced a CORS policy that is causing us errors, ie:
Access to XMLHttpRequest at ‘https://sdk-testnet.aepps.com/v2/key-blocks/current’ from origin ‘https://app.dev.cryptotask.org’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header has a value ‘https://base.aepps.com’ that is not equal to the supplied origin.

What is the reason for allowing only that origin, it means no one is able to test code without hosting their own full node?

1 Like

Of course you should be able to test code with other nodes. The SDK is also using the aeternal.io node and middleware as a standard setting. I’m not sure what causes this problem but I’ve forwarded your question. Thanks for asking!

1 Like

It should be fixed, see SDK-Testnet CORS Error

Sorry for the long delay, I’m sure we’ll start processing similar issues much faster very soon.

1 Like