testmycode / testmycode/tmc-server

Refactor CORS configuration

Aperta
#167 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

enhancement lowprio security
Lingua principale
Ruby
Stelle
51
Fork
42
Merge medio
1h 27m
PR unite (30g)
1

Descrizione

Make cors configuration based on site.yml, not just accepted IP addresses, but also url patterns etc

- host
  - allowed hosts
    -  host1
    -  host2
    -  ...
  - allowed methods
    - GET
    - POST
    - ...
``

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Start by locating the current CORS configuration and reading site.yml to understand how configuration is loaded. Compare the existing accepted-IP behavior with the requested host, allowed-host, and allowed-method structure. Done means CORS behavior is driven by site.yml rather than only accepted IP addresses, including URL patterns and methods.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
ruby
Ambito
backend
Tipo di issue
Refactoring
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.