mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: enable cors to all cdn get requests from workbox. (#10685)
Now all external requests from the service worker will be in CORS mode without credentials.
This commit is contained in:
@@ -13,6 +13,8 @@ class ThemeJavascriptsController < ApplicationController
|
||||
|
||||
before_action :is_asset_path, :no_cookies, only: [:show]
|
||||
|
||||
cdn_action only: [:show]
|
||||
|
||||
def show
|
||||
raise Discourse::NotFound unless last_modified.present?
|
||||
return render body: nil, status: 304 if not_modified?
|
||||
|
||||
Reference in New Issue
Block a user