BuzzerBeater Forums

BBAPI Support > CORS problem

CORS problem

Set priority
Show messages by
This Post:
00
288325.1
Date: 07/02/2017 12:49:09
Overall Posts Rated:
11
Greeting, i'm trying to write an app using angular4. When i try to use any http get request i receive the follow message:

XMLHttpRequest cannot load http://bbapi.buzzerbeater.com/login.aspx?login=XXX&code=XXX. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:4200' is therefore not allowed access. The response had HTTP status code 403.


Can someone help me?

This Post:
00
288325.2 in reply to 288325.1
Date: 07/03/2017 09:39:08
Overall Posts Rated:
11
Solved using a different http library (Not the angular4 one that require cors-compatible server)