mirror of
https://github.com/discourse/discourse.git
synced 2025-09-11 21:04:42 +08: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:
parent
f70042860b
commit
e3de45359f
21 changed files with 391 additions and 8 deletions
|
@ -3,6 +3,8 @@
|
|||
class SvgSpriteController < ApplicationController
|
||||
skip_before_action :preload_json, :redirect_to_login_if_required, :check_xhr, :verify_authenticity_token, only: [:show, :search, :svg_icon]
|
||||
|
||||
cdn_action only: [:show, :search, :svg_icon]
|
||||
|
||||
requires_login except: [:show, :svg_icon]
|
||||
|
||||
def show
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue