Geert Jan Sloos
Geert Jan Sloos
CDCloudflare Developers
Created by Geert Jan Sloos on 7/6/2023 in #pages-help
Show visitor count on my cloudflare page
Hello, I have a cloudflare worker https://live.lofi.radio/ which shows: 20 I want with HTML/Javascript show this number on https:lofi.radio But I get this error: Access to fetch at 'https://live.lofi.radio/' from origin 'https://lofi.radio' 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. Is there a way you can show output from a cloudflare worker on a cloudflare page?
I do not want to use iframe, also javascript fetch seems not to work.
12 replies