Jump to content

Question

Posted

Пытаюсь настроить проброс CORS заголовков к сервису за KeenDNS прокси. В анонсе KeeneticOS 5.0 Alpha 12 нашел интересную фичу:

Quote

Implemented Origin header enforcement for the KeenDNS Web application proxies. [NDM-3988]

  • ip http proxy {name} force-origin {origin} — force the addition of the specified {origin} header to the {name} HTTP(s) proxy.

Однако уже на этапе добавления в конфигурацию получаю ошибку:

(config)> ip http proxy cdb force-origin Access-Control-Allow-Credentials
Http::Proxy error[18554588]: "cdb": invalid Origin value: "Access-Control-Allow-Credentials".

Что-то упустил или эта фича не ушла из альфы в релиз?

KeeneticOS 5.1.1

1 answer to this question

Recommended Posts

  • 0
Posted (edited)
2 часа назад, bashvdi сказал:

Пытаюсь настроить проброс CORS заголовков к сервису за KeenDNS прокси. В анонсе KeeneticOS 5.0 Alpha 12 нашел интересную фичу:

Однако уже на этапе добавления в конфигурацию получаю ошибку:

(config)> ip http proxy cdb force-origin Access-Control-Allow-Credentials
Http::Proxy error[18554588]: "cdb": invalid Origin value: "Access-Control-Allow-Credentials".

Что-то упустил или эта фича не ушла из альфы в релиз?

KeeneticOS 5.1.1

всё на месте, он ожидает значения вида 

ip http proxy cdb force-origin http://192.168.1.10:8080

судя по контексту вам должна помочь опция 
 

 ip http proxy preserve-origin

 

Edited by Denis P
  • Thanks 1
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.