Skip to content

Commit

Permalink
OMGOMGOMG
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 committed Jun 6, 2024
1 parent 9139082 commit c9c42db
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/express-backend/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
<system.webServer>
<directoryBrowse enabled="true" />
<httpProtocol>
<rewrite>
<rules>
<rule name="React Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
<customHeaders>
<add name="Access-Control-Allow-Methods" value="GET, PUT, POST, PATCH, DELETE, HEAD" />
<add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />
Expand Down

0 comments on commit c9c42db

Please sign in to comment.