Wordpress installed on the server with jwt plugin for authorization by Rest API. I have executed all the instructions for installing the plugin (adding a secret key and allowing cors). At the frontend, this code should receive the user's token:
let headers = { "headers": { "Content-Type": "application/json", "Access-Control-Allow-Headers": "Authorization" } };
axios.post(this.$store.state.authURL, {"username": "***", "password": "***"}, headers); When sending such a request with the same headers from API testing services, everything works fine, but when I try to send such a request from an application on LAN, I get this: Request from an external source is blocked: The policy of one source prohibits reading a remote resource at https: // blog -resource.000webhostapp.com/wp-json/jwt-auth/v1/token . (Reason: Failed to execute CORS request) Please help with the problem. Thank you in advance