mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
BUG: minor, do not send access origin if not set
This commit is contained in:
@ -90,7 +90,7 @@ class StaticController < ApplicationController
|
|||||||
expires_in 1.year, public: true
|
expires_in 1.year, public: true
|
||||||
|
|
||||||
response.headers["Expires"] = 1.year.from_now.httpdate
|
response.headers["Expires"] = 1.year.from_now.httpdate
|
||||||
response.headers["Access-Control-Allow-Origin"] = params[:origin]
|
response.headers["Access-Control-Allow-Origin"] = params[:origin] if params[:origin]
|
||||||
|
|
||||||
begin
|
begin
|
||||||
response.headers["Last-Modified"] = File.ctime(path).httpdate
|
response.headers["Last-Modified"] = File.ctime(path).httpdate
|
||||||
|
Reference in New Issue
Block a user