Commit 5044f45
committed
fix: swagger spec same-origin so /AnalysisService and /ContentService docs load
dev.reactome.org sits behind mod_auth_openidc which 302s /AnalysisService/v3/api-docs
to Keycloak; the redirect response carries no Access-Control-Allow-Origin header so
the browser blocks the cross-origin XHR even after the user has signed in. Fetch the
OpenAPI spec from window.location.origin instead -- beta/release/reactome.org all
reverse-proxy their own /AnalysisService and /ContentService.1 parent c30f9fb commit 5044f45
1 file changed
Lines changed: 10 additions & 1 deletion
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
0 commit comments