Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS #5

Closed
deliriousrhino opened this issue Sep 7, 2015 · 9 comments
Closed

CORS #5

deliriousrhino opened this issue Sep 7, 2015 · 9 comments

Comments

@deliriousrhino
Copy link
Contributor

When using the SDK I am getting CORS errors

XMLHttpRequest cannot load
'Access-Control-Allow-Origin' header is present on the requested resource.
@deliriousrhino
Copy link
Contributor Author

Duplicate of #1 ;)

@ar2rsawseen
Copy link
Member

So everything is ok?
Basically server should accept any origin and I think all API requests do, if not open issue on countly-server ;)

@deliriousrhino
Copy link
Contributor Author

Yeah is ok looks like we just need to upgrade our server. Thanks

@knightswatch3
Copy link

I am experiencing this in the version 20.+. Can someone help ?

@ar2rsawseen
Copy link
Member

Hello,
check headers on server in Countly dashboard -> top cog -> Configurations -> Security -> Additional API HTTP Response headers
it should contain Access-Control-Allow-Origin: *

@kamrul10
Copy link

kamrul10 commented Sep 26, 2024

api_additional_headers: "X-Frame-Options:deny\nX-XSS-Protection:1; mode=block\nAccess-Control-Allow-Origin:*"
this configuration is there but still showing cors issue
countly version is 24.05.2
knightswatch3 have you find any way?

@ar2rsawseen
Copy link
Member

Hello @kamrul10
can you show us what error and response from server you get in your website network tab?

@kamrul10
Copy link

Hi @ar2rsawseen
Thanks for the reply 👍
This issue got resolved
It was not countly issue

@ar2rsawseen
Copy link
Member

No problem, glad it was resolved :)

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

No branches or pull requests

4 participants