Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Set 'Access-Control-Allow-Origin' in header #69

Closed
briva opened this issue Sep 1, 2016 · 2 comments
Closed

Set 'Access-Control-Allow-Origin' in header #69

briva opened this issue Sep 1, 2016 · 2 comments

Comments

@briva
Copy link

briva commented Sep 1, 2016

Firstly, thanks for your work.

I'm currently building a platform and I will use your project to get overwatch stats.

I got a little problem by a simple get call from my web app in ReactJS : No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

Do you know how to set headers to : 'Access-Control-Allow-Origin' in asphat or kyoukai ?

Thx.

@Fuyukai
Copy link
Owner

Fuyukai commented Sep 1, 2016

It would be as simple as adding a line in routes.py - after line 77, with the content of response.headers["Access-Control-Allow-Origin"] = "whatever".

@briva
Copy link
Author

briva commented Sep 1, 2016

Awesome its working well.

Thanks for your reactivity @SunDwarf ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants