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

Cross-origin resource sharing #5912

Merged
merged 1 commit into from Aug 3, 2014
Merged

Conversation

czolnowski
Copy link
Contributor

Add feature to persist cors hosts in config, edit in general settings tab and append to API headers if any is set.

… tab and append to API headers if any is set.
halfdan added a commit that referenced this pull request Aug 3, 2014
@halfdan halfdan merged commit 8d1f1b3 into matomo-org:master Aug 3, 2014
@halfdan
Copy link
Member

halfdan commented Aug 3, 2014

Nice work!

@czolnowski
Copy link
Contributor Author

Thanks @halfdan!
@mattab: maybe there should be an issue to rewrite general settings screen into angular? It's pretty difficult to add there anything. (messing with jquery)

@mattab
Copy link
Member

mattab commented Aug 3, 2014

@czolnowski definitely, would be great to rewrite the settings in AngularJS... in the meantime, would you mind removing the new CORS settings? Instead we can add a new FAQ answer to explain to users. (it's nice to keep settings to minimum in the UI)

@czolnowski
Copy link
Contributor Author

So this settings shouldn't be available in settings, at all, yes?

; Described here: http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
;
; Examples:
;cors_hosts[] = example.com
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on wikipedia page I see they also use http:// in front of domains, maybe examples could have it?

@mattab
Copy link
Member

mattab commented Aug 3, 2014

So this settings shouldn't be available in settings, at all, yes?

👍 (because it is used only rarely so far a FAQ answer is nice way to help user to configure it)

mattab added a commit that referenced this pull request Aug 4, 2014
@mattab
Copy link
Member

mattab commented Aug 4, 2014

@czolnowski applied my suggested changes in: 00ab57f

@halfdan I'm not sure if the comma separated notation really works. Did you test with setting two different cors_host entries?

@mattab mattab mentioned this pull request Aug 4, 2014
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

Successfully merging this pull request may close these issues.

None yet

3 participants