Disable CORS error for localhost
louwers opened this issue · comments
When trying to add a source with http, you always see this message:
Error: CORS policy won't allow fetching resources served over http from https, use a https:// domain
However this is even the case for http://localhost
, even though CORS does not apply to localhost (I never had any problems at least). This error should not be shown when the host is localhost
.
![image](https://private-user-images.githubusercontent.com/649392/348045755-1cfa4b3b-4d0b-4bb4-8b78-032a183ba0c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwODE4OTYsIm5iZiI6MTcyMjA4MTU5NiwicGF0aCI6Ii82NDkzOTIvMzQ4MDQ1NzU1LTFjZmE0YjNiLTRkMGItNGJiNC04Yjc4LTAzMmExODNiYTBjNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyN1QxMTU5NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMjBkNDgyZjhjYTBlYjlmZjgwMWNhNDhkMWE1ODU3OTJmM2EwNDA3MmRjYTFmNzU5NDEwZjc0MjlmMTJlYTk3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.oDa3g_7thjgohyS-lUrvn40PK6LStaG0fltYEGSsnMI)