CORS error
Posted: Mon May 25, 2026 2:37 am
Hi
I'm in no way an expert in HTML so hopefully someone in the forum can assist.
Being bored, and with no hardware I'm limited to simulation. There is a website I use and I created a chart running on a RPi that sends a GET request and after receiving the JSON reply, gives me the pairs of interest. This works fine and i can view activity on console as well as Simulation Debugger as I step through. No issue at all.
I then thought that it would be handy to get that information on my PC/Phone too so attempted to make a Web Developer Chart. I can actually just type in the URL and a browser will return the entire JSON string but an nice app would be better.
It has been a while since I used it but following some guides I created what I thought would work. It didn't
With Web Developer you can't step through, so in Firefox I opened up their web development tools to see what was going on and see that I'm sending OK but due to CORS I'm getting no response. Tried other browsers and they are the same, and I presume it is also why web viewer fails too.
Is there anyway to modify what I'm sending via web developer to get around this issue?
Regards
PS
I am only accessing a PHP script that then returns info.
I'm in no way an expert in HTML so hopefully someone in the forum can assist.
Being bored, and with no hardware I'm limited to simulation. There is a website I use and I created a chart running on a RPi that sends a GET request and after receiving the JSON reply, gives me the pairs of interest. This works fine and i can view activity on console as well as Simulation Debugger as I step through. No issue at all.
I then thought that it would be handy to get that information on my PC/Phone too so attempted to make a Web Developer Chart. I can actually just type in the URL and a browser will return the entire JSON string but an nice app would be better.
It has been a while since I used it but following some guides I created what I thought would work. It didn't
With Web Developer you can't step through, so in Firefox I opened up their web development tools to see what was going on and see that I'm sending OK but due to CORS I'm getting no response. Tried other browsers and they are the same, and I presume it is also why web viewer fails too.
Is there anyway to modify what I'm sending via web developer to get around this issue?
Regards
PS
I am only accessing a PHP script that then returns info.