Skip to content

Commit fd1825c

Browse files
committed
implemented CORS for collections/import
fixed cors error fixed credential cors error
1 parent b917cd5 commit fd1825c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/initializers/cors.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
allow do
55
origins '*'
66
resource '/api/v1/public/*', headers: :any, methods: %i[get post options]
7+
resource '/api/v1/collections/imports/*', headers: :any, methods: %i[post options], credentials: false
78
end
89
end

0 commit comments

Comments
 (0)