File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,66 @@ resource "aws_wafv2_web_acl" "this" {
114114 }
115115 }
116116 }
117+ statement {
118+ byte_match_statement {
119+ field_to_match {
120+ single_header {
121+ name = " origin"
122+ }
123+ }
124+ search_string = " dev.eatda.net"
125+ positional_constraint = " ENDS_WITH"
126+ text_transformation {
127+ priority = 0
128+ type = " LOWERCASE"
129+ }
130+ }
131+ }
132+ statement {
133+ byte_match_statement {
134+ field_to_match {
135+ single_header {
136+ name = " referer"
137+ }
138+ }
139+ search_string = " dev.eatda.net"
140+ positional_constraint = " CONTAINS"
141+ text_transformation {
142+ priority = 0
143+ type = " LOWERCASE"
144+ }
145+ }
146+ }
147+ statement {
148+ byte_match_statement {
149+ field_to_match {
150+ single_header {
151+ name = " origin"
152+ }
153+ }
154+ search_string = " http://localhost:3000"
155+ positional_constraint = " EXACTLY"
156+ text_transformation {
157+ priority = 0
158+ type = " NONE"
159+ }
160+ }
161+ }
162+ statement {
163+ byte_match_statement {
164+ field_to_match {
165+ single_header {
166+ name = " referer"
167+ }
168+ }
169+ search_string = " http://localhost:3000/"
170+ positional_constraint = " STARTS_WITH"
171+ text_transformation {
172+ priority = 0
173+ type = " NONE"
174+ }
175+ }
176+ }
117177 }
118178 }
119179 visibility_config {
You can’t perform that action at this time.
0 commit comments