Cors error

Status
Not open for further replies.

loota

New Member
Oct 24, 2024
3
0
Hi! Im new developer who has tried to solve problems with cors alone, now I have come to the conclusion that it is better to ask for help.
Im using cloudflare.

You must be registered for see images attach
 
Last edited:
Solution
Hi! Im new developer who has tried to solve problems with cors alone, now I have come to the conclusion that it is better to ask for help.


You must be registered for see images attach
Are you using IIS?

If so add these into your web.config

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET, POST, OPTIONS, PUT, DELETE" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Authorization" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

boz

don daddy
Mar 23, 2021
205
99
Hi! Im new developer who has tried to solve problems with cors alone, now I have come to the conclusion that it is better to ask for help.


You must be registered for see images attach
Are you using IIS?

If so add these into your web.config

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET, POST, OPTIONS, PUT, DELETE" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Authorization" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
 
Solution

loota

New Member
Oct 24, 2024
3
0
Are you using IIS?

If so add these into your web.config

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET, POST, OPTIONS, PUT, DELETE" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Authorization" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
Yes thank you! After deleting cache i found out this solved the problem :)
 
Status
Not open for further replies.

Users who are viewing this thread

Top