Skip to content

Conversation

@bigcat88
Copy link
Contributor

@bigcat88 bigcat88 commented Oct 2, 2023

resolves #80

Requires modification in the Nextcloud core(CORSMiddleware.php):

After passesCSRFCheck we add skip condition based on value set in AppAPI authentication.

// Skip CORS check for requests with AppAPI auth.
if ($this->session->get('app_api') === true) {
    return;
}

@bigcat88
Copy link
Contributor Author

bigcat88 commented Oct 2, 2023

CI errors unrelated to this PR, after we merge #77 (today/tomorrow) they will gone.

@bigcat88 bigcat88 merged commit f7cbda2 into main Oct 3, 2023
@bigcat88 bigcat88 deleted the cors-middleware branch October 3, 2023 13:57
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.

CORS annotation problem

3 participants