mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
BUG: minor, do not send access origin if not set
This commit is contained in:
parent
8d56aa12e9
commit
6c09b6739d
@ -90,7 +90,7 @@ class StaticController < ApplicationController
|
||||
expires_in 1.year, public: true
|
||||
|
||||
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
|
||||
response.headers["Last-Modified"] = File.ctime(path).httpdate
|
||||
|
Loading…
Reference in New Issue
Block a user