Skip to content

Instantly share code, notes, and snippets.

View heberfomin's full-sized avatar

heber heberfomin

View GitHub Profile
@heberfomin
heberfomin / simple web.config for Laravel API with CORS
Last active October 1, 2018 06:29
simple web.config for Angular 6 in one site and Laravel API in another
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />