Expand my Community achievements bar.

SOLVED

how to configure in dispatcher level ".model.json" in should allow on DNS domain as well

Avatar

Level 4

On React component approach we are using ".model.json" to react will configure json. in author its working fine for DNS its blocking ".model.json" with consist of " /content/* "

 

Example: /content/we-retail/en/jcr:content/responsivegrid/women-comp.model.json

 

 

any reference for please suggest me.

1 Accepted Solution

Avatar

Correct answer by
Level 5

# to allow model.json for react
/0064 { /type "allow" /path "/content/<myproject>/*" /method "GET" /selectors "model" /extension "json" }

 

pls change project name and rule number *(/0064) accordingly and try

View solution in original post

3 Replies

Avatar

Level 5

Check webserver and dispatcher logs, you should get an idea where request is getting blocked.

Most probably you dont have a rule to allow these at dispatcher filter.

 

Avatar

Level 4

Hi @asn11  ,

 

 Thansks for your reply, Yes there is no rules include this, write a new rule what could be the regular expression.

Avatar

Correct answer by
Level 5

# to allow model.json for react
/0064 { /type "allow" /path "/content/<myproject>/*" /method "GET" /selectors "model" /extension "json" }

 

pls change project name and rule number *(/0064) accordingly and try