Unable to run API call in web preview

I am trying to run this

in the Web Preview but get this error

2024-02-06 17 00 00

Is there any reason why I shouldn’t be able to run an API call in the web preview.


Based on that error and the fact that this is only happening in web preview, it sounds like a CORS issue.