Chrome browser ajax request

Asked 2 years ago, Updated 2 years ago, 114 views

Hi, how are you? I am a high school student studying the web. I'm leaving a message because there was a problem while studying. I'm going to send ajax request I heard that the Chrome browser blocked security. So you go into the property and --disable-web-security --user-data-dir="D:\Brakes\html" After I set it up, I kept doing it in the console window Failed to load file://D:/Brakes/html/json_data.txt: Crossorigin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

Can I know how to fix it? Please.

ajax google-chrome ajax-request

2022-09-22 20:05

1 Answers

If it's the option above, it should work normally.

I think he would have run the html file containing the Ajax code right away.

Run the Chrome browser with the security option and type the html file path in the address bar, or drag the html file to the Chrome browser screen.


2022-09-22 20:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.