Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Bolt on June 11, 2023, 05:04:45 PM

Title: REST API with CORS error
Post by: Bolt on June 11, 2023, 05:04:45 PM
I'm trying to develop a separately hosted site that pulls data from a BRX via API, but getting response:
Code: [Select]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <BRX IP Address?query>. (Reason: CORS header 'Access-Control-Allow-Origin' missing). Status code: 200. Pulling the API query from a web browser returns the data just fine. What changes can be made to deal with this?
Title: Re: REST API with CORS error
Post by: deep6ixed on June 12, 2023, 08:33:05 PM
CORS is a network policy setup that the website server uses.

Who is hosting the website and what kind of server are you using?

Title: Re: REST API with CORS error
Post by: Bolt on June 13, 2023, 09:44:29 AM
I'm having a web developer build it, I think he's just hosting it on his local machine at the moment (with WAMPP).