Testing Windy on localhost ?
-
We have upgraded our subscription to professional, and start to use windy Forecast Map in our application built with React.
We have come to a problem there which is When we have upgraded the subscription to a professional plan, an authorized domain is added which is used on their system to check whether the API key is legal and is connected to the actual domain.
But our developers often work to develop things locally on their PC before it is pushed to the test server, and then when we used a professional API key with localhost:4200 we got a message that "unauthorized domain"
Does this mean that we cannot sit and develop things locally, nor on the test server?
Do you have any solution to how we can develop things with Windy Map using localhost?
The error message we have received is: "Not authorized to Windy API: Cannot use Windy API, key is used from unauthorized domain."
-
Hi @Bahaa_Fadhil this restriction is probably caused by setup of your Windy API key. You probably have inserted the domain, where you want to use this API key, so the key is protected from using anywhere else.
However, you can delete this restriction or you can insert localhost as another possible location, where the API key can be used. You can do that here on this link.
-
@Ondřej-Šutera Thank you for feedback :)