mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-02 10:09:51 -04:00
BUG: minor, do not send access origin if not set
This commit is contained in:
parent
8d56aa12e9
commit
6c09b6739d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue