Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
11346 Widoki

Hi, I am using OpenERP V7 with Ubuntu.

following the guide : https://github.com/vaab/js-oe-json to work with openERP using Jquery, I saw:

"You can force your openerp server to set these headers thanks to apache when used in proxy mode by adding these in your apache configuration:"

Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS"
Header set Access-Control-Allow-Headers "origin, content-type, accept"

To do so, does it means that I have to install an additional Apache as a reverse proxy in front of OpenERP and in this Apache add the 3 lines ?

Awatar
Odrzuć
Najlepsza odpowiedź

The Script Access OpenERP per Javascript. In general no Browser allows calling Javascript to a different domain. This is a basic of security. In some context it can be helpfull to have a way that other domains can execute Javascipt on your webside. This will be implemented in "Access-Control-Allow" HTTP Header. In OpenERP you can not excess the HTTP Header, so he adds a apache as proxy. The installation is not part of the manuel.

BUT: i recommend: don't do this becouse it breaks your security of OpenERP If you want to change OpenERP start learning how to develop web modules.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 23
68973
0
gru 24
9448
3
wrz 24
21590
5
gru 24
52884
4
lip 24
10552