Skip to content

Commit ecee38a

Browse files
committed
feat: allow prefix overleaf
1 parent bbce5ef commit ecee38a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/api/gin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func NewGinServer(cfg *cfg.Cfg, oauthHandler *auth.OAuthHandler) *GinServer {
2121
ginServer := &GinServer{Engine: gin.New(), cfg: cfg}
2222
ginServer.Use(ginServer.ginLogMiddleware(), gin.Recovery())
2323
ginServer.Use(cors.New(cors.Config{
24-
AllowOrigins: []string{"https://overleaf.com", "https://www.overleaf.com", "http://localhost:3000", "http://127.0.0.1:3000"},
24+
AllowOrigins: []string{"https://overleaf.com", "https://*.overleaf.com", "https://*.paperdebugger.com", "http://localhost:3000", "http://127.0.0.1:3000"},
2525
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
2626
AllowHeaders: []string{"*"},
2727
ExposeHeaders: []string{"*"},

webapp/_webapp/src/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
"content_scripts": [
2222
{
2323
"js": ["paperdebugger.js"],
24-
"matches": ["https://www.overleaf.com/project/*"],
24+
"matches": ["https://*.overleaf.com/project/*"],
2525
"world": "MAIN"
2626
},
2727
{
2828
"js": ["intermediate.js"],
29-
"matches": ["https://www.overleaf.com/project/*"],
29+
"matches": ["https://*.overleaf.com/project/*"],
3030
"run_at": "document_start"
3131
}
3232
],
3333
"web_accessible_resources": [
3434
{
3535
"resources": ["images/*"],
36-
"matches": ["https://www.overleaf.com/*"]
36+
"matches": ["https://*.overleaf.com/*"]
3737
}
3838
],
3939
"key": "[AUTO-GENERATED]"

0 commit comments

Comments
 (0)