Skip to content

Commit

Permalink
Remove unnecessary pool dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Sep 13, 2023
1 parent f6fd796 commit 78ed428
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 44 deletions.
42 changes: 0 additions & 42 deletions source/Stargate-Model/CrossOriginResourceSharing.class.st

This file was deleted.

25 changes: 23 additions & 2 deletions source/Stargate-Model/CrossOriginResourceSharingHandler.class.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
Class {
#name : #CrossOriginResourceSharingHandler,
#superclass : #Object,
#pools : [
'CrossOriginResourceSharing'
#classVars : [
'Headers'
],
#category : #'Stargate-Model-CORS'
}

{ #category : #'class initialization' }
CrossOriginResourceSharingHandler class >> initialize [

<ignoreForCoverage>
Headers := Namespace new.
Headers
bind: #origin to: 'Origin';
bind: #accessControlRequestHeaders
to: 'Access-Control-Request-Headers';
bind: #accessControlRequestMethod
to: 'Access-Control-Request-Method';
bind: #accessControlAllowOrigin to: 'Access-Control-Allow-Origin';
bind: #accessControlAllowMethods to: 'Access-Control-Allow-Methods';
bind: #accessControlAllowHeaders to: 'Access-Control-Allow-Headers';
bind: #accessControlAllowCredentials
to: 'Access-Control-Allow-Credentials';
bind: #accessControlMaxAge to: 'Access-Control-Max-Age';
bind: #accessControlExposeHeaders
to: 'Access-Control-Expose-Headers'
]

{ #category : #accessing }
CrossOriginResourceSharingHandler >> headerNames [

Expand Down

0 comments on commit 78ed428

Please sign in to comment.