amate / Proxydomo

ローカルで動作するプロクシフィルタリングソフトです
http://www31.atwiki.jp/lafe/pages/37.html
GNU General Public License v2.0
74 stars 12 forks source link

local.ptron headers #39

Closed mas91180 closed 7 years ago

mas91180 commented 7 years ago

Hi Amate, is there any way to change them without re-building the sources? I'd like to add Access-Control-Allow-Origin there for example. Thanks.

amate commented 7 years ago
[HTTP headers]
Key = "Access-Control-Allow-Origin: test"
In = TRUE
Out = FALSE
Version = ""
Author = ""
Comment = ""
Active = TRUE
Multi = FALSE
URL = ""
Bounds = ""
Limit = 2000
Match = ""
Replace = "*"

Please import this filter.

mas91180 commented 7 years ago

I tried that, unfortunately, the only headers I can see are (for js file): HTTP/1.1 200 OK Content-Type: text/javascript Content-Length: 7993 Connection: close

See the code at the end of the CRequestManager::_HandleLocalPtron method - _FakeResponse("200 OK", filename); Those are the only headers in _FakeResponse...

amate commented 7 years ago

v1.97 fixed