Cross-domain API calls broken?

Cross-domain API calls broken?

in API Development

Posted by: fro.8967

fro.8967

Suddenly getting the following error in console on all of the live WvW map sites:

XMLHttpRequest cannot load https://api.guildwars2.com/v1/wvw/matches.json?_=1414180209171. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘[removed]’ is therefore not allowed access.

Cross-domain API calls broken?

in API Development

Posted by: Pat Cavit.9234

Pat Cavit.9234

Web Programming Lead

Next

We’ll take a look, seems like something got missed in the tests.

Cross-domain API calls broken?

in API Development

Posted by: Drant.5902

Drant.5902

It’s not just matches.json, other services like map_floor.json and item_details.json are inaccessible as well. I should note that these services are all v1

Cross-domain API calls broken?

in API Development

Posted by: Pat Cavit.9234

Previous

Pat Cavit.9234

Web Programming Lead

Next

Yeah, every /v1 API had its CORS headers go missing. They should all be back in place now.

Cross-domain API calls broken?

in API Development

Posted by: fro.8967

fro.8967

Looks all good to me. Thanks for the quick fix Pat!

Cross-domain API calls broken?

in API Development

Posted by: Eastborn.6089

Eastborn.6089

Is this still the case for the v2 API?

because i get the following message:

https://api.guildwars2.com/v2/items/12452?lang=en&_=1426522029742. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://159.253.7.156’ is therefore not allowed access. The response had HTTP status code 404.

(edited by Eastborn.6089)

Cross-domain API calls broken?

in API Development

Posted by: Pat Cavit.9234

Previous

Pat Cavit.9234

Web Programming Lead

Is this still the case for the v2 API?

because i get the following message:

https://api.guildwars2.com/v2/items/12452?lang=en&_=1426522029742. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://159.253.7.156’ is therefore not allowed access. The response had HTTP status code 404.

Looks fine to me:

https://redbot.org/?uri=https%3A%2F%2Fapi.guildwars2.com%2Fv2%2Fitems%2F12452%3Flang%3Den%26amp%3B_%3D1426522029742

Even our 404 sends a CORS header.

https://redbot.org/?uri=https%3A%2F%2Fapi.guildwars2.com%2Fv2%2Fitems%2F3%3Flang%3Den%26amp%3B_%3D1426522029742