News:

  • August 04, 2026, 07:56:07 AM

Login with username, password and session length

Author Topic: REST API with CORS error  (Read 6304 times)

Bolt

  • Hero Member
  • *****
  • Posts: 598
REST API with CORS error
« 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?

deep6ixed

  • Hero Member
  • *****
  • Posts: 105
Re: REST API with CORS error
« Reply #1 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?


Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: REST API with CORS error
« Reply #2 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).
« Last Edit: June 13, 2023, 09:48:26 AM by Bolt »