This repository was 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
Draft
moeenio wants to merge 3 commits into
Draft
[WIP - DO NOT MERGE] Contourner les CORS en utilisant l'API native#114moeenio wants to merge 3 commits into
moeenio wants to merge 3 commits into
Conversation
moeenio
marked this pull request as ready for review
May 27, 2023 17:10
Contributor
Author
|
J'avais pas réussi à configurer le live reload de l'appli mobile sur Android (https://capacitorjs.com/docs/guides/live-reload) et je me suis pas repenché dessus depuis. @LeGeek01 si tu veux aider sur ça utilise cette branche |
moeenio
marked this pull request as draft
May 27, 2023 17:11
Contributor
Si tu veux live reload (peu importe l'OS) fais le manuellement avec la config au lieu de la CLI qui marche une fois sur 12 |
Contributor
Author
|
comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
developmentbranch or in the specific branch of the feature you want to merge intoTODOin the codeProposed changelog
frNote
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