Hi
I am trying to do my first API customization.
i.e. accessing a server on the internet from a script on my erpnext-system.
The browser console reports this…
(Reason: CORS header ‘Access-Control-Allow-Origin’ missing)
And the Network tab reports this…
Status
200
OK
VersionHTTP/1.1
Transferred1.16 kB (1.03 kB size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest
DNS ResolutionSystem
I am using Firefox and I have already ( tried to ) disable CORS via a setting in
about:config
And yes when I use the same URL and KEY with POSTMAN, I get a properly formatted response, so those items must be correct.
The response headers when I do my script-request is the same as the response headers that I see in POSTMAN. So the response from the server in both cases are the same.
Do I need to disable CORS in my code when setting up the FETCH data ?