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

[stable10] Allow regular users to change their CORS domains #30649

Merged
merged 1 commit into from
Mar 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions settings/Controller/CorsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ private function getRedirectResponse() {
/**
* Gets all White-listed domains
*
* @NoAdminRequired
* @NoSubadminRequired
*
* @return JSONResponse All the White-listed domains
*/
public function getDomains() {
Expand All @@ -97,6 +100,9 @@ public function getDomains() {
/**
* WhiteLists a domain for CORS
*
* @NoAdminRequired
* @NoSubadminRequired
*
* @param string $domain The domain to whitelist
* @return RedirectResponse Redirection to the settings page.
*/
Expand Down Expand Up @@ -125,6 +131,9 @@ public function addDomain($domain) {
/**
* Removes a WhiteListed Domain
*
* @NoAdminRequired
* @NoSubadminRequired
*
* @param string $domain Domain to remove
* @return RedirectResponse Redirection to the settings page.
*/
Expand Down