This repository has been archived by the owner on Oct 15, 2023. It is now read-only.
[WIP - DO NOT MERGE] Contourner les CORS en utilisant l'API native #114
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Par défaut les moteurs web restreignent la possibilité de faire des requêtes d'un site à un autre (Cross-Origin Resource Sharing) seulement si le site en question le permet, y compris pour des pages hébergées localement, donc la plupart des requêtes effectuées par l'app aux services scolaires passent actuellement par un serveur intermédiaire nommé proxy CORS.
Cette PR implémente le patch des fonctions Fetch et XMLHttpRequest (utilisé par Axios) fourni par le plugin Http de Capacitor, afin d'utiliser, sur les plateformes natives (iOS et Android), le système de requêtes HTTP natif qui n'est pas soumis aux restrictions CORS.
Cela a un impact sur l'ensemble de l'application, et pourrait potentiellement provoquer des bugs inédits.
Fonctionnalités concernées à tester
Progression
Pull request checklist
Please check if your PR fulfills the following requirements:
development
branch or in the specific branch of the feature you want to merge intoTODO
in the codeProposed changelog
fr
Note
Before merging this PR, you will need the approval of at least one of the following people:
So be patient ;)
Informations supplémentaires
close #112