screenshot-to-code
screenshot-to-code copied to clipboard
Prefix http/https for URLs to screenshot
Access to fetch at 'https://backend-screenshot-to-code.onrender.com/api/screenshot' from origin 'https://picoapps.xyz' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Typically, that's an indication of a different error. Can you double check your Screenshot One key?
Typically, that's an indication of a different error. Can you double check your Screenshot One key?
No issues on screenshot one api key, just checked it and works on their playground. This is the error I get on hosted version with fresh generated api key.
Can you try running the local version instead?
Oooh I found the issue lol. If you manually enter url without https:// part it just does not work. So lets say if you try google.com it throws an error. Should be easy fix with regex...
Ah that makes sense. Will fix!