ruby on rails - Nginx X-Frame-Options -
i use nginx 1.8.0 under centos 6.7 serving ruby on rails 4.2.3 application.
the problem:
i need enable iframe options domains tried this:
x-frame-options: *
then when check headers see twice 1 time sameorigin
, 1 time *
, here response:
http/1.1 200 ok server: nginx/1.8.0 date: sun, 01 nov 2015 15:48:32 gmt content-type: text/html; charset=utf-8 connection: keep-alive status: 200 ok strict-transport-security: max-age=31536000 x-frame-options: sameorigin x-xss-protection: 1; mode=block x-content-type-options: nosniff etag: w/"d14b3de05fb18ebe4a94774c8f209e7f" cache-control: max-age=0, private, must-revalidate set-cookie: guess_locale=en; path=/; secure set-cookie: _admin_numgames_com_session=y3n0qjr2nxy0vflzmlvnmhjlzc9wbuvraldzyjhpeho0ug41akpaze1rb0tqws9yegpkckltrmviuu5avmjpuelccwpmafjwqmpiwhrsazi4te9qdtgvq2vvrgyrsw9vcja4ewvcmvlsuhjrejr1wmnoqwzol2hgeva1zhp5ywxpdfz4s25ydettamvnbflzmehjrddxalq2mu93t24vwnr6b28wm0nvys82nm1xmgv2njh4djizr1rnb2w3wtvhudm3cvl3nnvrqnj1wtmyu3i4dvbjy3rorwrqslk2vmhnvnrvelzrbhrvwt0tlu9dyvbizuxouxlln2vmz01vnehab3c9pq%3d%3d--fa2a9d6817b5464b82a2babd784ed098f2526eeb; path=/; secure; httponly x-request-id: 4762503a-a9a8-41ce-b1a7-26269b7e9184 x-runtime: 0.963198 x-frame-options: *
there 1 time declare option why see twice? , how remove option 1 able use domain iframe?
ok found solution , rails problem sent header, needed add production.rb file:
config.action_dispatch.default_headers = { 'x-frame-options' => 'allowall' }
Comments
Post a Comment